diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-13 15:06:32 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-13 15:06:32 +0000 |
commit | e1437d7a21e294b7531cbd6acd5b77814c82ec8b (patch) | |
tree | aa9f835fb87678577103091c2bb708f071867e73 /phpBB/cron.php | |
parent | 298d3c0c50f14601472b832f3ecd8fcd8c07dfe4 (diff) | |
download | forums-e1437d7a21e294b7531cbd6acd5b77814c82ec8b.tar forums-e1437d7a21e294b7531cbd6acd5b77814c82ec8b.tar.gz forums-e1437d7a21e294b7531cbd6acd5b77814c82ec8b.tar.bz2 forums-e1437d7a21e294b7531cbd6acd5b77814c82ec8b.tar.xz forums-e1437d7a21e294b7531cbd6acd5b77814c82ec8b.zip |
- added class="radio" to all radio- and checkboxes
- make sure the database gets closed correctly in cron.php
- bugfixes
git-svn-id: file:///svn/phpbb/trunk@6055 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r-- | phpBB/cron.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php index 9f2c59966c..38bcd38d3e 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -207,14 +207,15 @@ switch ($cron_type) break; } -// Unload cache, must be done before the DB connection is closed -if (!empty($cache)) +// Unloading cache and closing db after having done the dirty work. +if ($use_shutdown_function) { - $cache->unload(); + register_shutdown_function('garbage_collection'); +} +else +{ + garbage_collection(); } - -// Close our DB connection. -$db->sql_close(); // Output transparent gif header('Cache-Control: no-cache'); |