Permalink
Browse files

MDL-34342 cache: Added missing include and fixed old lang manager set…

…ting
  • Loading branch information...
1 parent cdf9b0c commit 468cc57297754b3ae6bc52d959e55b868612eb11 Sam Hemelryk committed Nov 6, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −0 admin/cli/install.php
  2. +0 −3 lib/moodlelib.php
View
@@ -164,6 +164,7 @@
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;
View
@@ -7030,9 +7030,6 @@ public function reset_caches($phpunitreset = false) {
*/
public function get_revision() {
global $CFG;
- if (!$this->usediskcache) {
- return -1;
- }
if (isset($CFG->langrev)) {
return (int)$CFG->langrev;
} else {

0 comments on commit 468cc57

Please sign in to comment.