Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ting
  • Loading branch information...
commit 468cc57297754b3ae6bc52d959e55b868612eb11 1 parent cdf9b0c
@samhemelryk samhemelryk authored
Showing with 1 addition and 3 deletions.
  1. +1 −0  admin/cli/install.php
  2. +0 −3  lib/moodlelib.php
View
1  admin/cli/install.php
@@ -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
3  lib/moodlelib.php
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.