79444395

Date: 2025-02-17 04:29:29
Score: 0.5
Natty:
Report link

Simply you can change current lang to AR and then get your translate and then get it back

$SESSION->lang = $course_module->lang;
$x = get_string("lessontitle", "block_smartteacher")
$SESSION->lang = "en"

no x is in $course_module->lang lang

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ninja Man