mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-34342 cache: Added missing include and fixed old lang manager setting
This commit is contained in:
parent
cdf9b0c86f
commit
468cc57297
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user