1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

implement new phpbb::$acm object, replacing $cache global

git-svn-id: file:///svn/phpbb/trunk@9240 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2008-12-28 13:27:58 +00:00
parent fbaf2baa8d
commit 889fa87140
57 changed files with 543 additions and 774 deletions

View File

@@ -78,13 +78,13 @@ class p_master
*/
function list_modules($p_class)
{
global $auth, $db, $user, $cache, $config;
global $auth, $db, $user, $config;
// Sanitise for future path use, it's escaped as appropriate for queries
$this->p_class = str_replace(array('.', '/', '\\'), '', basename($p_class));
// Get cached modules
if (($this->module_cache = $cache->get('_modules_' . $this->p_class)) === false)
if (($this->module_cache = phpbb::$acm->get('modules_' . $this->p_class)) === false)
{
// Get modules
$sql = 'SELECT *
@@ -108,7 +108,7 @@ class p_master
}
unset($rows);
$cache->put('_modules_' . $this->p_class, $this->module_cache);
phpbb::$acm->put('modules_' . $this->p_class, $this->module_cache);
}
if (empty($this->module_cache))