aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_modules.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2013-01-01 20:57:21 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2013-01-02 01:29:32 -0500
commitb94f9ae3029777fa0aba2f3cb52b321925ce7e72 (patch)
tree7bd19036716759f90947cae0c46acce080f5eb34 /phpBB/includes/acp/acp_modules.php
parent7adae349a96d5dffbd47ea5eca1e6bee481b7ce1 (diff)
downloadforums-b94f9ae3029777fa0aba2f3cb52b321925ce7e72.tar
forums-b94f9ae3029777fa0aba2f3cb52b321925ce7e72.tar.gz
forums-b94f9ae3029777fa0aba2f3cb52b321925ce7e72.tar.bz2
forums-b94f9ae3029777fa0aba2f3cb52b321925ce7e72.tar.xz
forums-b94f9ae3029777fa0aba2f3cb52b321925ce7e72.zip
[ticket/11305] Retrieve cache driver from container rather than cache service.
This only covers some of the call sites. PHPBB3-11305
Diffstat (limited to 'phpBB/includes/acp/acp_modules.php')
-rw-r--r--phpBB/includes/acp/acp_modules.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_modules.php b/phpBB/includes/acp/acp_modules.php
index 8528dc91c4..52a82004e8 100644
--- a/phpBB/includes/acp/acp_modules.php
+++ b/phpBB/includes/acp/acp_modules.php
@@ -740,15 +740,15 @@ class acp_modules
*/
function remove_cache_file()
{
- global $cache;
+ global $phpbb_container;
// Sanitise for future path use, it's escaped as appropriate for queries
$p_class = str_replace(array('.', '/', '\\'), '', basename($this->module_class));
- $cache->destroy('_modules_' . $p_class);
+ $phpbb_container->get('cache.driver')->destroy('_modules_' . $p_class);
// Additionally remove sql cache
- $cache->destroy('sql', MODULES_TABLE);
+ $phpbb_container->get('cache.driver')->destroy('sql', MODULES_TABLE);
}
/**