MDL-12294 fixed parentlang string

This commit is contained in:
moodler
2008-02-26 07:27:23 +00:00
parent 00f60cd1cb
commit e5f7002f2f
+4 -1
View File
@@ -1504,7 +1504,10 @@ function make_default_scale() {
/// Read in the big description from the file. Note this is not
/// HTML (despite the file extension) but Moodle format text.
$parentlang = get_string('parentlang');
$parentlang = get_string('parentlanguage');
if ($parentlang[0] == '[') {
$parentlang = '';
}
if (is_readable($CFG->dataroot .'/lang/'. $CFG->lang .'/help/forum/ratings.html')) {
$file = file($CFG->dataroot .'/lang/'. $CFG->lang .'/help/forum/ratings.html');
} else if (is_readable($CFG->dirroot .'/lang/'. $CFG->lang .'/help/forum/ratings.html')) {