mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fixed bug #488093
git-svn-id: file:///svn/phpbb/trunk@1621 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4a6c692484
commit
19ad462c32
1 changed files with 8 additions and 5 deletions
|
@ -97,17 +97,18 @@ if( isset($HTTP_POST_VARS['doprune']) )
|
||||||
);
|
);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@reset($forum_rows);
|
|
||||||
|
reset($forum_rows);
|
||||||
while(list(, $forum_data) = each ($forum_rows))
|
while(list(, $forum_data) = each ($forum_rows))
|
||||||
{
|
{
|
||||||
$p_result = prune($forum_data['forum_id'], $prunedate);
|
$p_result = prune($forum_data['forum_id'], $prunedate);
|
||||||
sync("forum", $forum_data['forum_id']);
|
sync("forum", $forum_data['forum_id']);
|
||||||
|
|
||||||
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
|
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
|
||||||
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
|
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
$template->assign_block_vars("prune_results", array(
|
$template->assign_block_vars("prune_results", array(
|
||||||
"ROW_COLOR" => "#" . $row_color,
|
"ROW_COLOR" => "#" . $row_color,
|
||||||
"ROW_CLASS" => $row_class,
|
"ROW_CLASS" => $row_class,
|
||||||
|
@ -117,6 +118,7 @@ if( isset($HTTP_POST_VARS['doprune']) )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
"L_FORUM" => $lang['Forum'],
|
"L_FORUM" => $lang['Forum'],
|
||||||
"L_TOPICS_PRUNED" => $lang['Topics_pruned'],
|
"L_TOPICS_PRUNED" => $lang['Topics_pruned'],
|
||||||
|
@ -162,7 +164,8 @@ else
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]);
|
$forum_id = $HTTP_POST_VARS[POST_FORUM_URL];
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Output the form to retrieve Prune information.
|
// Output the form to retrieve Prune information.
|
||||||
|
|
Loading…
Add table
Reference in a new issue