Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 27c202c1c077f3a51c7484f565df0cfa9154326d 1 parent 3ef24c6
@stronk7 stronk7 authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 admin/settings/plugins.php
View
14 admin/settings/plugins.php
@@ -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')));
Please sign in to comment.
Something went wrong with that request. Please try again.