diff --git a/lib/pluginlib.php b/lib/pluginlib.php index 2fee5094726..087b6cb4b6b 100644 --- a/lib/pluginlib.php +++ b/lib/pluginlib.php @@ -809,7 +809,6 @@ class available_update_checker { $start = mktime(1, 0, 0, date('n', $now), date('j', $now), date('Y', $now)); // 01:00 AM today local time if ($now > $start + $offset) { $this->cron_mtrace('Regular daily check for available updates ... ', ''); - cron_trace_time_and_memory(); $this->cron_execute(); return; } diff --git a/lib/tests/statslib_test.php b/lib/tests/statslib_test.php index 2e79f80fce1..316377d96c2 100644 --- a/lib/tests/statslib_test.php +++ b/lib/tests/statslib_test.php @@ -28,6 +28,7 @@ defined('MOODLE_INTERNAL') || die(); global $CFG; require_once($CFG->libdir . '/adminlib.php'); require_once($CFG->libdir . '/statslib.php'); +require_once($CFG->libdir . '/cronlib.php'); /** * Test functions that affect daily stats