MDL-33318 use $CFG->admin in path correctly - thanks to Clarence Prudhoe for report/fix
authorDan Marsden <dan@danmarsden.com>
Thu, 24 May 2012 02:08:01 +0000 (14:08 +1200)
committerDan Marsden <dan@danmarsden.com>
Thu, 24 May 2012 02:08:01 +0000 (14:08 +1200)
lib/cronlib.php

index 0e47a65..3bbab29 100644 (file)
@@ -376,7 +376,7 @@ function cron_run() {
 
     //Run registration updated cron
     mtrace(get_string('siteupdatesstart', 'hub'));
-    require_once($CFG->dirroot . '/admin/registration/lib.php');
+    require_once($CFG->dirroot . "/$CFG->admin/registration/lib.php");
     $registrationmanager = new registration_manager();
     $registrationmanager->cron();
     mtrace(get_string('siteupdatesend', 'hub'));