1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +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

@@ -25,7 +25,7 @@ class mcp_ban
function main($id, $mode)
{
global $config, $db, $user, $auth, $template, $cache;
global $config, $db, $user, $auth, $template;
include(PHPBB_ROOT_PATH . 'includes/functions_user.' . PHP_EXT);

View File

@@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
*/
function mcp_forum_view($id, $mode, $action, $forum_info)
{
global $template, $db, $user, $auth, $cache, $module, $config;
global $template, $db, $user, $auth, $module, $config;
$user->add_lang(array('viewtopic', 'viewforum'));

View File

@@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
*/
function mcp_post_details($id, $mode, $action)
{
global $template, $db, $user, $auth, $cache, $config;
global $template, $db, $user, $auth, $config;
$user->add_lang('posting');

View File

@@ -33,7 +33,7 @@ class mcp_queue
function main($id, $mode)
{
global $auth, $db, $user, $template, $cache;
global $auth, $db, $user, $template;
global $config, $action;
include_once(PHPBB_ROOT_PATH . 'includes/functions_posting.' . PHP_EXT);

View File

@@ -33,7 +33,7 @@ class mcp_reports
function main($id, $mode)
{
global $auth, $db, $user, $template, $cache;
global $auth, $db, $user, $template;
global $config, $action;
include_once(PHPBB_ROOT_PATH . 'includes/functions_posting.' . PHP_EXT);

View File

@@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
*/
function mcp_topic_view($id, $mode, $action)
{
global $template, $db, $user, $auth, $cache, $config;
global $template, $db, $user, $auth, $config;
$url = append_sid(PHPBB_ROOT_PATH. 'mcp.' . PHP_EXT . '?' . extra_url());