]> git.mjollnir.org Git - moodle.git/commitdiff
Make sure we can see all installed languages regardless of langlist
authormoodler <moodler>
Fri, 28 Apr 2006 02:29:36 +0000 (02:29 +0000)
committermoodler <moodler>
Fri, 28 Apr 2006 02:29:36 +0000 (02:29 +0000)
admin/langimport.php

index 078067dfbde686ef9eb1897b457e83054a89be8b..4ff88921939a4eee2cfeed9b3d17fc5eb736bf60 100755 (executable)
             $source = 'http://download.moodle.org/lang16/languages.md5';
             $md5array = array();
             $updated = 0;    //any packs updated?
+            unset($CFG->langlist);   // ignore admin's langlist
             $alllangs = array_keys(get_list_of_languages());
             $lang16 = array();   //all the Moodle 1.6 unicode lang packs (updated and not updated)
             $packs = array();    //all the packs that needs updating
             echo '<tr><td align="center" valign="top">';
             echo '<form name="uninstallform" action="langimport.php?mode=4" method="POST">';
             echo '<input name="sesskey" type="hidden" value="'.sesskey().'" />';
+            unset($CFG->langlist);   // ignore admin's langlist
             $installedlangs = get_list_of_languages();
 
             /// display installed langs here