From e4fe2d853d3e96ec4d6493e1651d93ab1b73ae1c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 21 Mar 2005 23:10:11 +0000 Subject: - and my second attempt git-svn-id: file:///svn/phpbb/trunk@5109 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'phpBB/includes/functions_display.php') diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index d1e7ebb325..e9cc61b5a6 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -98,7 +98,9 @@ function display_forums($root_data = '', $display_moderators = TRUE) $right_id = $row['right_id']; continue; } - + + + // Display active topics from this forum? if ($show_active && $row['forum_type'] == FORUM_POST && $auth->acl_get('f_read', $forum_id) && ($row['forum_flags'] & 16)) { @@ -213,6 +215,8 @@ function display_forums($root_data = '', $display_moderators = TRUE) $visible_forums++; $forum_id = $row['forum_id']; + $subforums_list = $l_subforums = ''; + // Generate list of subforums if we need to if (isset($subforums[$forum_id])) { @@ -254,9 +258,6 @@ function display_forums($root_data = '', $display_moderators = TRUE) $folder_image = 'forum_link'; break; } - - $subforums_list = ''; - $l_subforums = ''; } // Which folder should we display? @@ -535,8 +536,8 @@ function display_attachments($forum_id, $blockname, &$attachment_data, &$update_ { // Some basics... $attachment['extension'] = strtolower(trim($attachment['extension'])); - $filename = $phpbb_root_path . $config['upload_dir'] . '/' . basename($attachment['physical_filename']); - $thumbnail_filename = $phpbb_root_path . $config['upload_dir'] . '/thumb_' . basename($attachment['physical_filename']); + $filename = $phpbb_root_path . $config['upload_path'] . '/' . basename($attachment['physical_filename']); + $thumbnail_filename = $phpbb_root_path . $config['upload_path'] . '/thumb_' . basename($attachment['physical_filename']); $upload_image = ''; -- cgit v1.2.1