aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_modules.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_modules.php')
-rw-r--r--phpBB/includes/acp/acp_modules.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_modules.php b/phpBB/includes/acp/acp_modules.php
index fab7731567..927fed7502 100644
--- a/phpBB/includes/acp/acp_modules.php
+++ b/phpBB/includes/acp/acp_modules.php
@@ -749,15 +749,12 @@ class acp_modules
*/
function remove_cache_file()
{
- global $phpbb_root_path, $phpEx;
+ global $cache;
// Sanitise for future path use, it's escaped as appropriate for queries
$p_class = str_replace(array('.', '/', '\\'), '', basename($this->module_class));
- if (file_exists($phpbb_root_path . 'cache/' . $p_class . '_modules.' . $phpEx))
- {
- @unlink($phpbb_root_path . 'cache/' . $p_class . '_modules.' . $phpEx);
- }
+ $cache->destroy('_modules_' . $p_class);
}
/**