diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-09 18:32:50 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-09 18:32:50 +0000 |
commit | b36c02f320e1d3250bbd5784d05d6044f70a19c8 (patch) | |
tree | 37819db71eb43e2d47a5f476d59071c27ff5dabd /phpBB/includes/acp/acp_modules.php | |
parent | b8834051eb5d7d376e7c5a2be273decdd6c9b886 (diff) | |
download | forums-b36c02f320e1d3250bbd5784d05d6044f70a19c8.tar forums-b36c02f320e1d3250bbd5784d05d6044f70a19c8.tar.gz forums-b36c02f320e1d3250bbd5784d05d6044f70a19c8.tar.bz2 forums-b36c02f320e1d3250bbd5784d05d6044f70a19c8.tar.xz forums-b36c02f320e1d3250bbd5784d05d6044f70a19c8.zip |
- 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
Diffstat (limited to 'phpBB/includes/acp/acp_modules.php')
-rw-r--r-- | phpBB/includes/acp/acp_modules.php | 7 |
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); } /** |