From 73593f4186198b2bed7f44c51ee9555985306239 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 13 Apr 2010 21:19:35 +0000 Subject: [PATCH] MDL-22061 fixed warning --- lib/datalib.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/datalib.php b/lib/datalib.php index 5a484125d3a..4b5332f8e45 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -1591,9 +1591,6 @@ 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_parent_language(); - 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')) {