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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user