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

This commit is contained in:
Sam Hemelryk 2012-11-06 17:24:15 +13:00
parent cdf9b0c86f
commit 468cc57297
2 changed files with 1 additions and 3 deletions

View 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->dirroot.'/cache/lib.php');
require($CFG->dirroot.'/version.php');
$CFG->target_release = $release;

View File

@ -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 {