"MDL-3729, use forces language for htmleditor"

This commit is contained in:
dongsheng
2009-05-07 05:30:10 +00:00
parent 8a50f7d16b
commit 7fbdd28395
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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
View File
@@ -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