From bfaed432149bee3259d65efd710bf32d06e99f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Wed, 10 Apr 2013 13:20:52 +0200 Subject: [PATCH] MDL-39087 Fix missing cronlib inclusion in file_storage::cron() This is not actually related to MDL-38259 but it was discovered while running unit tests for file_storage. When running the tests for this class separately, the cronlib.php was not included (it is included when this method is normally called during cron execution). --- lib/filestorage/file_storage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/filestorage/file_storage.php b/lib/filestorage/file_storage.php index f22635fc5bd..ee29b75f6a1 100644 --- a/lib/filestorage/file_storage.php +++ b/lib/filestorage/file_storage.php @@ -2015,6 +2015,7 @@ class file_storage { */ public function cron() { global $CFG, $DB; + require_once($CFG->libdir.'/cronlib.php'); // find out all stale draft areas (older than 4 days) and purge them // those are identified by time stamp of the /. root dir