"MDL-3729, use forces language for htmleditor"
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
// ob_start("ob_gzhandler");
|
||||
//}
|
||||
|
||||
// use course language
|
||||
$courseid = optional_param('id', 1, PARAM_INT);
|
||||
course_setup($courseid);
|
||||
|
||||
header("Content-type: application/x-javascript; charset: utf-8"); // Correct MIME type
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $lastmodified) . " GMT");
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT");
|
||||
|
||||
+1
-1
@@ -4936,7 +4936,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
|
||||
|
||||
}
|
||||
$str .= ($scriptcount < 1) ? '<script type="text/javascript" src="'.
|
||||
$CFG->httpswwwroot .'/lib/editor/htmlarea/lang/en.php"></script>'."\n" : '';
|
||||
$CFG->httpswwwroot .'/lib/editor/htmlarea/lang/en.php?id='.$courseid.'"></script>'."\n" : '';
|
||||
$scriptcount++;
|
||||
|
||||
if ($height) { // Usually with legacy calls
|
||||
|
||||
Reference in New Issue
Block a user