From 889fa871402814874d5d4f01b2f1c829d8206eb9 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 28 Dec 2008 13:27:58 +0000 Subject: implement new phpbb::$acm object, replacing $cache global git-svn-id: file:///svn/phpbb/trunk@9240 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/download/file.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'phpBB/download') diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 47ccff3b65..9dfdf6a5ae 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -656,12 +656,16 @@ function set_modified_headers($stamp, $browser) function file_gc() { - global $cache, $db; - if (!empty($cache)) + if (phpbb::registered('acm')) { - $cache->unload(); + phpbb::$acm->unload(); } - $db->sql_close(); + + if (phpbb::registered('db')) + { + phpbb::$db->sql_close(); + } + exit; } -- cgit v1.2.1