]> git.mjollnir.org Git - moodle.git/commitdiff
admin/upgradesettings.php is now proper hidden external page with correct breadcrums ;-)
authorskodak <skodak>
Mon, 25 Sep 2006 18:21:59 +0000 (18:21 +0000)
committerskodak <skodak>
Mon, 25 Sep 2006 18:21:59 +0000 (18:21 +0000)
admin/settings/top.php
admin/upgradesettings.php

index ecd755b8b7d87537b925b9b74d531c03f9a82dda..4c6fa4cc09d429ba88a27ae62d8f74f9af02674a 100644 (file)
@@ -1,10 +1,15 @@
 <?php // $Id$
 
-// This is the first file read by the admin.php script
-// We use it to create the categories, since they need to exist *before* settingpages and externalpages
-// are added to them
+// This is the first file read by the lib/adminlib.php script
+// We use it to create the categories in correct order,
+// since they need to exist *before* settingpages and externalpages
+// are added to them.
 
 $ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
+
+ // hidden upgrade script
+$ADMIN->add('root', new admin_externalpage('upgradesettings', get_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
+
 $ADMIN->add('root', new admin_category('users', get_string('users','admin')));
 $ADMIN->add('root', new admin_category('courses', get_string('courses','admin')));
 $ADMIN->add('root', new admin_category('location', get_string('location','admin')));
index b561f20b74f19f71323ae35cb1b8049923ee00b0..06f0b299518f0d3df9e5fc48a287c9c08bc9f54f 100644 (file)
@@ -7,7 +7,7 @@ require_once('../config.php');
 require_once($CFG->libdir.'/adminlib.php');
 
 $adminroot = admin_get_root();
-admin_externalpage_setup('adminnotifications', $adminroot); // we pretend to be the adminnotifications page... don't wanna show up in the menu :)
+admin_externalpage_setup('upgradesettings', $adminroot); // now hidden page
 
 // a caveat: we're depending on only having one admin access this page at once. why? the following line
 // (the function call to find_new_settings) must have the EXACT SAME RETURN VALUE both times that this