Merge branch 'master_MDL-33318' of git://github.com/danmarsden/moodle
authorAparup Banerjee <aparup@moodle.com>
Thu, 24 May 2012 06:46:38 +0000 (14:46 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 24 May 2012 06:46:38 +0000 (14:46 +0800)
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'));