MDL-34342 cache: Added missing include and fixed old lang manager setting
authorSam Hemelryk <sam@moodle.com>
Tue, 6 Nov 2012 04:24:15 +0000 (17:24 +1300)
committerSam Hemelryk <sam@moodle.com>
Tue, 6 Nov 2012 04:24:20 +0000 (17:24 +1300)
admin/cli/install.php
lib/moodlelib.php

index 38aa06e..858571f 100644 (file)
@@ -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->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;
 
 require($CFG->dirroot.'/version.php');
 $CFG->target_release = $release;
index 5c384c3..960442d 100644 (file)
@@ -7030,9 +7030,6 @@ class core_string_manager implements string_manager {
      */
     public function get_revision() {
         global $CFG;
      */
     public function get_revision() {
         global $CFG;
-        if (!$this->usediskcache) {
-            return -1;
-        }
         if (isset($CFG->langrev)) {
             return (int)$CFG->langrev;
         } else {
         if (isset($CFG->langrev)) {
             return (int)$CFG->langrev;
         } else {