From ed09041b095d306fb86434d9780695028f72a41a Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 30 Sep 2024 18:30:08 +1300 Subject: [PATCH] Remove require for file that no longer exists in 4.5 --- classes/cache_config_writer.php | 2 -- classes/cache_factory.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/classes/cache_config_writer.php b/classes/cache_config_writer.php index d812fab..e0c1be7 100644 --- a/classes/cache_config_writer.php +++ b/classes/cache_config_writer.php @@ -15,8 +15,6 @@ // along with Moodle. If not, see . defined('MOODLE_INTERNAL') || die(); -// Manually require locallib as it isn't autoloaded. -require_once(__DIR__.'/../../../../cache/locallib.php'); /** * This config_writer is readonly, and provides public access to some protected methods. diff --git a/classes/cache_factory.php b/classes/cache_factory.php index 6cd1899..5f2466d 100644 --- a/classes/cache_factory.php +++ b/classes/cache_factory.php @@ -40,7 +40,6 @@ public function create_config_instance($writer = false) { // Check if this is a PHPUnit test and redirect to the phpunit config classes if it is. if ($testing) { - require_once($CFG->dirroot.'/cache/locallib.php'); require_once($CFG->dirroot.'/cache/tests/fixtures/lib.php'); // We have just a single class for PHP unit tests. We don't care enough about its // performance to do otherwise and having a single method allows us to inject things into it @@ -49,7 +48,6 @@ public function create_config_instance($writer = false) { } if ($writer) { - require_once($CFG->dirroot.'/cache/locallib.php'); if (!$testing) { $class .= '_writer'; }