From e1437d7a21e294b7531cbd6acd5b77814c82ec8b Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 13 Jun 2006 15:06:32 +0000 Subject: - 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 --- phpBB/cron.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'phpBB/cron.php') 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'); -- cgit v1.2.1