Bug tracker
warning duration of '0' removes warning (fix completed in vcs)
Comments / History
- Code: Select all
OPEN:
includes/functions.php
FIND:
else if (time() - $config['warnings_gc'] > $config['warnings_last_gc'])
{
$cron_type = 'tidy_warnings';
}
REPLACE WITH:
else if (time() - $config['warnings_gc'] > $config['warnings_last_gc'])
{
if ($config['warnings_expire_days'] == 0)
{
$cron_type = '';
}
else
{
$cron_type = 'tidy_warnings';
}
}
- Code: Select all
else if ((time() - $config['warnings_gc'] > $config['warnings_last_gc']) && $config['warnings_expire_days'])
{
$cron_type = 'tidy_warnings';
}
Acyd Burn wrote:A good change for 3.0.6 may be now to extend warnings a bit and allow it's removal.
I agree. It would still be nice if a setting of "0" was permanent though.
Nickvergessen, I haven't tested your solution, but wouldn't $config['warning_expire_days'] still be defined if it was 0? That would mean tidy_warnings would still run, putting us right back to square 1. Maybe add > 0 to before the ).