Merged from MOODLE_19_STABLE:

More on MDL-11561 - fixed up path to local/ settings file to be more consistent,
added documentation in lib/locallib.php on how to create new local admin tree item
This commit is contained in:
mjollnir_ 2008-01-15 01:10:34 +00:00
parent 0b5e060578
commit 60581bb517
2 changed files with 13 additions and 2 deletions

View File

@ -4125,8 +4125,8 @@ function &admin_get_root($reload=false, $requirefulltree=true) {
include($file);
}
}
if (file_exists($CFG->dirroot.'/local/localsettings.php')) {
include_once($CFG->dirroot.'/local/localsettings.php');
if (file_exists($CFG->dirroot.'/local/settings.php')) {
include_once($CFG->dirroot.'/local/settings.php');
}
}

View File

@ -48,6 +48,17 @@
* with $oldversion set to 0, so that all the updates run.
*
*
* Local admin menu items
* ----------------------
*
* It is possible to add new items to the admin_tree block.
* To do this, create a file, local/settings.php
* which can access the $ADMIN variable directly and add things to it.
* You might do something like:
* $ADMIN->add('root', new admin_category($name, $title);
* $ADMIN->add('foo', new admin_externalpage($name, $title, $url, $cap);
*
*
* Course deletion
* ---------------
*