aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/cron.php
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-03-04 17:34:04 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-03-04 17:34:04 +0000
commit14b6714c93944b6af9ec01d978cfe7f387dc7e9a (patch)
treefcf2b32921fe4ba1f8c48d8c199fbe7dbc545317 /phpBB/cron.php
parent70b20a98f756c0bd3081d5de92997776ae39d6ce (diff)
downloadforums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar
forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar.gz
forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar.bz2
forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.tar.xz
forums-14b6714c93944b6af9ec01d978cfe7f387dc7e9a.zip
Expire issued warnings after and admin configurable time
TODO: Add config option for this value to the ACP git-svn-id: file:///svn/phpbb/trunk@5602 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r--phpBB/cron.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index 848c263009..15564e1f5c 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -81,6 +81,19 @@ switch ($cron_type)
}
set_config('search_last_gc', time());
+ case 'tidy_warnings':
+ include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
+
+ if ($use_shutdown_function)
+ {
+ register_shutdown_function('tidy_warnings');
+ }
+ else
+ {
+ tidy_warnings();
+ }
+ break;
+
case 'tidy_database':
include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);