1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

- 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
This commit is contained in:
Meik Sievertsen
2006-03-09 18:32:50 +00:00
parent b8834051eb
commit b36c02f320
7 changed files with 48 additions and 50 deletions

View File

@@ -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);
}
/**