aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-11 00:58:14 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-11 00:58:14 +0000
commit30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49 (patch)
tree1a810c52171ee2b0fb38078084288b78e5c42ee5 /phpBB/viewforum.php
parent549537b9d570ac70c16f4560b9efbafa293834db (diff)
downloadforums-30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49.tar
forums-30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49.tar.gz
forums-30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49.tar.bz2
forums-30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49.tar.xz
forums-30fd2486d82d50fecd4ba5ec6b81eebc4fcfdf49.zip
Yet more mildly fudged code ... just to get something up, minor fixes/updates elsewhere
git-svn-id: file:///svn/phpbb/trunk@4004 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index ff5eb34021..cf60bb8d4b 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -342,7 +342,11 @@ if ($forum_data['forum_type'] == FORUM_POST)
foreach ($row_ary as $row)
{
$topic_id = $row['topic_id'];
- $replies = ($auth->acl_get('m_approve', $forum_id)) ? $row['topic_replies_real'] : $row['topic_replies'];
+
+
+ // How many replies? hhmmm 1? 2? let's find out
+ $replies = ($auth->acl_get('m_approve')) ? $row['topic_replies_real'] : $row['topic_replies'];
+
// Type and folder
$topic_type = '';
@@ -426,8 +430,6 @@ if ($forum_data['forum_type'] == FORUM_POST)
// Goto message generation
- $replies = ($auth->acl_get('m_approve')) ? $row['topic_replies_real'] : $row['topic_replies'];
-
if (($replies + 1) > intval($config['posts_per_page']))
{
$total_pages = ceil(($replies + 1) / intval($config['posts_per_page']));