mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
0b5e060578
commit
60581bb517
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
* ---------------
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user