From ec884a2c5b3a9e786fdc5ef3988fab1b5cdb9e8c Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 29 Mar 2003 18:28:45 +0000 Subject: icon name change git-svn-id: file:///svn/phpbb/trunk@3747 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'phpBB/includes/functions_display.php') diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 448ff87583..debc51f9f8 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -52,11 +52,11 @@ function display_forums($root_data = '', $display_moderators = TRUE) $lastread_sql = ''; // } - $sql = 'SELECT f.* ' . $lastread_select . ' - FROM ' . FORUMS_TABLE . " f " . - $lastread_sql . - $where_sql . ' - ORDER BY left_id'; + $sql = "SELECT f.* $lastread_select + FROM " . FORUMS_TABLE . " f + $lastread_sql + $where_sql + ORDER BY left_id"; $result = $db->sql_query($sql); $branch_root_id = $root_data['forum_id']; @@ -73,13 +73,14 @@ function display_forums($root_data = '', $display_moderators = TRUE) } unset($right_id); } + if (!$row['forum_postable'] && ($row['left_id'] + 1 == $row['right_id'])) { // Non-postable forum with no subforums: don't display continue; } - if (!$auth->acl_gets('f_list', 'm_', 'a_', intval($row['forum_id']))) + if (!$auth->acl_get('f_list', $row['forum_id'])) { // if the user does not have permissions to list this forum, skip everything until next branch @@ -178,7 +179,7 @@ function display_forums($root_data = '', $display_moderators = TRUE) $last_post .= ($row['forum_last_poster_id'] == ANONYMOUS) ? (($row['forum_last_poster_name'] != '') ? $row['forum_last_poster_name'] . ' ' : $user->lang['GUEST'] . ' ') : "' . $row['forum_last_poster_name'] . ' '; - $last_post .= '' . $user->img('goto_post_latest', 'VIEW_LATEST_POST') . ''; + $last_post .= '' . $user->img('icon_post_latest', 'VIEW_LATEST_POST') . ''; } else { -- cgit v1.2.1