]> git.mjollnir.org Git - moodle.git/commitdiff
Prevent edition of langconfig.php from Moodle editor. Part of 4924.
authorstronk7 <stronk7>
Mon, 10 Apr 2006 22:15:57 +0000 (22:15 +0000)
committerstronk7 <stronk7>
Mon, 10 Apr 2006 22:15:57 +0000 (22:15 +0000)
(http://moodle.org/bugs/bug.php?op=show&bugid=4924)

admin/lang.php

index dd4c9fba3c236308130af1f70d46faf1cb3e4daa..8f00d18244fcecda22773b9474fc7c47ba600943 100644 (file)
     }
 
     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
+?>