From: stronk7 Date: Mon, 10 Apr 2006 22:15:57 +0000 (+0000) Subject: Prevent edition of langconfig.php from Moodle editor. Part of 4924. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a606b39449966572c2ebb5aacbc39d29d943353;p=moodle.git Prevent edition of langconfig.php from Moodle editor. Part of 4924. (http://moodle.org/bugs/bug.php?op=show&bugid=4924) --- diff --git a/admin/lang.php b/admin/lang.php index dd4c9fba3c..8f00d18244 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -92,7 +92,10 @@ } foreach ($stringfiles as $key => $file) { - if (substr($file, -4) != ".php") { + if (substr($file, -4) != ".php") { //Avoid non php files to be showed + unset($stringfiles[$key]); + } + if ($file == "langconfig.php") { //Avoid langconfig.php to be showed unset($stringfiles[$key]); } } @@ -365,4 +368,4 @@ function lang_file_string_key($keyfromform) { } -?> \ No newline at end of file +?>