* @return object admin_roow object
*/
function admin_get_root($reload=false, $requirefulltree=true) {
- global $CFG, $DB;
+ global $CFG, $DB, $OUTPUT;
static $ADMIN = NULL;
$ADMIN->purge_children($requirefulltree);
}
+ // Some parts of the tree require $CFG->pixpath.
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
+
if (!$ADMIN->loaded) {
// we process this file first to create categories first and in correct order
require($CFG->dirroot.'/'.$CFG->admin.'/settings/top.php');