mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
more changes
git-svn-id: file:///svn/phpbb/trunk@2463 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -71,7 +71,7 @@ function sync($type, $id)
|
||||
|
||||
while( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
sync("forum", $row['forum_id']);
|
||||
sync('forum', $row['forum_id']);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -85,7 +85,7 @@ function sync($type, $id)
|
||||
|
||||
while( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
sync("topic", $row['topic_id']);
|
||||
sync('topic', $row['topic_id']);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@@ -26,7 +26,6 @@ if ( !defined('IN_PHPBB') )
|
||||
}
|
||||
|
||||
require($phpbb_root_path . 'includes/functions_search.'.$phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
|
||||
|
||||
function prune($forum_id, $prune_date)
|
||||
{
|
||||
@@ -110,8 +109,6 @@ function prune($forum_id, $prune_date)
|
||||
|
||||
remove_search_post($sql_post);
|
||||
|
||||
sync('forum', $forum_id);
|
||||
|
||||
return array ('topics' => $pruned_topics, 'posts' => $pruned_posts);
|
||||
}
|
||||
}
|
||||
@@ -125,6 +122,8 @@ function prune($forum_id, $prune_date)
|
||||
//
|
||||
function auto_prune($forum_id = 0)
|
||||
{
|
||||
require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
|
||||
|
||||
global $db, $lang;
|
||||
|
||||
$sql = "SELECT *
|
||||
@@ -142,7 +141,8 @@ function auto_prune($forum_id = 0)
|
||||
$prune_date = time() - ( $row['prune_days'] * 86400 );
|
||||
$next_prune = time() + ( $row['prune_freq'] * 86400 );
|
||||
|
||||
$pruned = prune($forum_id, $prune_date);
|
||||
prune($forum_id, $prune_date);
|
||||
sync('forum', $forum_id);
|
||||
|
||||
$sql = "UPDATE " . FORUMS_TABLE . "
|
||||
SET prune_next = $next_prune
|
||||
|
Reference in New Issue
Block a user