|
From: Paul S. O. <ps...@us...> - 2002-04-03 01:08:07
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv568/includes
Modified Files:
functions_admin.php prune.php
Log Message:
more changes
Index: functions_admin.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions_admin.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** functions_admin.php 2 Apr 2002 14:02:27 -0000 1.4
--- functions_admin.php 2 Apr 2002 14:53:40 -0000 1.5
***************
*** 72,76 ****
while( $row = $db->sql_fetchrow($result) )
{
! sync("forum", $row['forum_id']);
}
break;
--- 72,76 ----
while( $row = $db->sql_fetchrow($result) )
{
! sync('forum', $row['forum_id']);
}
break;
***************
*** 86,90 ****
while( $row = $db->sql_fetchrow($result) )
{
! sync("topic", $row['topic_id']);
}
break;
--- 86,90 ----
while( $row = $db->sql_fetchrow($result) )
{
! sync('topic', $row['topic_id']);
}
break;
Index: prune.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/prune.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** prune.php 2 Apr 2002 14:02:27 -0000 1.16
--- prune.php 2 Apr 2002 14:53:40 -0000 1.17
***************
*** 27,31 ****
require($phpbb_root_path . 'includes/functions_search.'.$phpEx);
- require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
function prune($forum_id, $prune_date)
--- 27,30 ----
***************
*** 111,116 ****
remove_search_post($sql_post);
- sync('forum', $forum_id);
-
return array ('topics' => $pruned_topics, 'posts' => $pruned_posts);
}
--- 110,113 ----
***************
*** 126,129 ****
--- 123,128 ----
function auto_prune($forum_id = 0)
{
+ require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
+
global $db, $lang;
***************
*** 143,147 ****
$next_prune = time() + ( $row['prune_freq'] * 86400 );
! $pruned = prune($forum_id, $prune_date);
$sql = "UPDATE " . FORUMS_TABLE . "
--- 142,147 ----
$next_prune = time() + ( $row['prune_freq'] * 86400 );
! prune($forum_id, $prune_date);
! sync('forum', $forum_id);
$sql = "UPDATE " . FORUMS_TABLE . "
|