From b36c02f320e1d3250bbd5784d05d6044f70a19c8 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 9 Mar 2006 18:32:50 +0000 Subject: - fix cookie shortening - let the acm handle the module cache - call $cache->save() after destroying data if necessary git-svn-id: file:///svn/phpbb/trunk@5612 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_modules.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'phpBB/includes/acp/acp_modules.php') 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); } /** -- cgit v1.2.1