Permalink
Browse files

MDL-31911 admin tools: moved loop after tools admin category created

  • Loading branch information...
1 parent 3ef24c6 commit 27c202c1c077f3a51c7484f565df0cfa9154326d @stronk7 stronk7 committed Mar 14, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 admin/settings/plugins.php
View
@@ -477,6 +477,13 @@
$ADMIN->add('reportplugins', $page);
}
+/// Add all admin tools
+if ($hassiteconfig) {
+ $ADMIN->add('modules', new admin_category('tools', get_string('tools', 'admin')));
+ $ADMIN->add('tools', new admin_externalpage('managetools', get_string('toolsmanage', 'admin'),
+ $CFG->wwwroot . '/' . $CFG->admin . '/tools.php'));
+}
+
// Now add various admin tools
foreach (get_plugin_list('tool') as $plugin => $plugindir) {
$settings_path = "$plugindir/settings.php";
@@ -485,13 +492,6 @@
}
}
-/// Add all admin tools
-if ($hassiteconfig) {
- $ADMIN->add('modules', new admin_category('tools', get_string('tools', 'admin')));
- $ADMIN->add('tools', new admin_externalpage('managetools', get_string('toolsmanage', 'admin'),
- $CFG->wwwroot . '/' . $CFG->admin . '/tools.php'));
-}
-
/// Add all local plugins - must be always last!
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('localplugins', get_string('localplugins')));

0 comments on commit 27c202c

Please sign in to comment.