aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-28 13:27:58 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-28 13:27:58 +0000
commit889fa871402814874d5d4f01b2f1c829d8206eb9 (patch)
treece3d6b9c23a6df118c1458cc7adeafa10ffde5a8 /phpBB/includes/functions_module.php
parentfbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3 (diff)
downloadforums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar.gz
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar.bz2
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar.xz
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.zip
implement new phpbb::$acm object, replacing $cache global
git-svn-id: file:///svn/phpbb/trunk@9240 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index 2899848009..6a7301c798 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -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))