From 468cc57297754b3ae6bc52d959e55b868612eb11 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 6 Nov 2012 17:24:15 +1300 Subject: [PATCH] MDL-34342 cache: Added missing include and fixed old lang manager setting --- admin/cli/install.php | 1 + lib/moodlelib.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/admin/cli/install.php b/admin/cli/install.php index 38aa06e87d2..858571fd03d 100644 --- a/admin/cli/install.php +++ b/admin/cli/install.php @@ -164,6 +164,7 @@ require_once($CFG->libdir.'/moodlelib.php'); require_once($CFG->libdir.'/deprecatedlib.php'); require_once($CFG->libdir.'/adminlib.php'); require_once($CFG->libdir.'/componentlib.class.php'); +require_once($CFG->dirroot.'/cache/lib.php'); require($CFG->dirroot.'/version.php'); $CFG->target_release = $release; diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 5c384c319dd..960442d53e5 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7030,9 +7030,6 @@ class core_string_manager implements string_manager { */ public function get_revision() { global $CFG; - if (!$this->usediskcache) { - return -1; - } if (isset($CFG->langrev)) { return (int)$CFG->langrev; } else {