Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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).
  • Loading branch information...
commit bfaed432149bee3259d65efd710bf32d06e99f3f 1 parent 546b886
@mudrd8mz mudrd8mz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/filestorage/file_storage.php
View
1  lib/filestorage/file_storage.php
@@ -2015,6 +2015,7 @@ public static function mimetype($pathname, $filename = null) {
*/
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
Please sign in to comment.
Something went wrong with that request. Please try again.