mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
oops... not realised the config name change locally. :/
added logging of bump action git-svn-id: file:///svn/phpbb/trunk@4625 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -447,10 +447,9 @@ if (sizeof($censors))
|
||||
}
|
||||
|
||||
// Bump topic allowed?
|
||||
$bump_type = (string) preg_replace('#^[0-9]+([m|h|d])$#', '\1', $config['bump_time_range']);
|
||||
$bump_time = (int) preg_replace('#^([0-9]+)[m|h|d]$#', '\1', $config['bump_time_range']);
|
||||
$bump_time = ($bump_type == 'm') ? $bump_time*60 : (($bump_type == 'h') ? $bump_time*3600 : $bump_time*86400);
|
||||
unset($bump_type);
|
||||
preg_match('#^([0-9]+)(m|h|d)$#', $config['bump_interval'], $match);
|
||||
$bump_time = ($match[2] == 'm') ? $match[1] * 60 : (($match[2] == 'h') ? $match[1] * 3600 : $match[1] * 86400);
|
||||
unset($match);
|
||||
|
||||
// Send vars to template
|
||||
$template->assign_vars(array(
|
||||
|
Reference in New Issue
Block a user