aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
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/download
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/download')
-rw-r--r--phpBB/download/file.php12
1 files changed, 8 insertions, 4 deletions
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;
}