Pre-release: again the function to limit the announcements by age: let's depend it on "topic_time", not "topic_last_post_time". makes more sense to me...

This commit is contained in:
Kevin
2008-05-02 15:04:10 +00:00
parent d0a9090aa5
commit 83df57be0f
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ $fetch_news = phpbb_fetch_posts($portal_config['portal_global_announcements_foru
$forum_from = ( strpos($forum_from, ',') !== FALSE ) ? explode(',', $forum_from) : (($forum_from != '') ? array($forum_from) : array());
$time = ( $portal_config['portal_announcements_day'] == 0 ) ? 0 : $portal_config['portal_announcements_day'];
$post_time = ($time == 0) ? '' : 'AND topic_last_post_time > ' . (time() - $time * 86400);
$post_time = ($time == 0) ? '' : 'AND topic_time > ' . (time() - $time * 86400);
$str_where = '';

View File

@@ -77,7 +77,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
$posts = array();
$post_time = ($time == 0) ? '' : 'AND t.topic_last_post_time > ' . (time() - $time * 86400);
$post_time = ($time == 0) ? '' : 'AND t.topic_time > ' . (time() - $time * 86400);
$forum_from = ( strpos($forum_from, ',') !== FALSE ) ? explode(',', $forum_from) : (($forum_from != '') ? array($forum_from) : array());