aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-09-30 14:58:05 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-09-30 14:58:05 +0000
commitb08c54f35eb85d0ccd01c65e1d9460603fc1c076 (patch)
tree252d8a70ca5e3b84eb590c404a2fe7df16653972 /phpBB/includes/functions_display.php
parente4fc191e0dba2f18dd046451f1a95e4fb9e76a88 (diff)
downloadforums-b08c54f35eb85d0ccd01c65e1d9460603fc1c076.tar
forums-b08c54f35eb85d0ccd01c65e1d9460603fc1c076.tar.gz
forums-b08c54f35eb85d0ccd01c65e1d9460603fc1c076.tar.bz2
forums-b08c54f35eb85d0ccd01c65e1d9460603fc1c076.tar.xz
forums-b08c54f35eb85d0ccd01c65e1d9460603fc1c076.zip
- fixing a bug i am unsure about when it occurs (but it occurs). The symptoms are broken template cache files if after removing unnecessary php opening/closing tags result in statements being syntactially incorrect.
- added real syncing to forums acp (not only forum statistics rebuild) git-svn-id: file:///svn/phpbb/trunk@6419 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index fccefa0552..e241c1e83e 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -339,7 +339,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'FORUM_ID' => $row['forum_id'],
'FORUM_NAME' => $row['forum_name'],
'FORUM_DESC' => generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
- 'TOPICS' => $row['forum_topics'],
+ 'TOPICS' => ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'],
$l_post_click_count => $post_click_count,
'FORUM_FOLDER_IMG' => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : $user->img($folder_image, $folder_alt),
'FORUM_FOLDER_IMG_SRC' => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : $user->img($folder_image, $folder_alt, false, '', 'src'),