MDL-21558 fixed sorting of installed local plugins

A typo caused loosing of array keys that are needed in the later
foreach loop
This commit is contained in:
David Mudrak
2010-02-09 14:15:43 +00:00
parent 885ea6df1b
commit 70be294d15
+1 -1
View File
@@ -82,7 +82,7 @@ foreach (get_plugin_list('local') as $plugin => $plugindir) {
}
$plugins[$plugin] = $strpluginname;
}
sort($plugins, SORT_LOCALE_STRING);
asort($plugins, SORT_LOCALE_STRING);
foreach ($plugins as $plugin => $name) {
$delete = new moodle_url($PAGE->url, array('delete' => $plugin, 'sesskey' => sesskey()));