aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-11-12 18:19:18 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-11-16 21:51:58 +0100
commit5a82061c3af79c09e5f95a562e477caa283a7b47 (patch)
tree946933c9ec0bae51e5be5fb93d498f7602f5c4b1 /phpBB/includes
parent4a1e5df654a31b9670df67ff9f72b209497f3e79 (diff)
downloadforums-5a82061c3af79c09e5f95a562e477caa283a7b47.tar
forums-5a82061c3af79c09e5f95a562e477caa283a7b47.tar.gz
forums-5a82061c3af79c09e5f95a562e477caa283a7b47.tar.bz2
forums-5a82061c3af79c09e5f95a562e477caa283a7b47.tar.xz
forums-5a82061c3af79c09e5f95a562e477caa283a7b47.zip
[ticket/9211] Use different icon for link subforum in forum legend
PHPBB3-9211
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_display.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 4726676e2d..53d485cae3 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -282,6 +282,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
$subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
$subforums[$parent_id][$forum_id]['children'] = array();
+ $subforums[$parent_id][$forum_id]['type'] = $row['forum_type'];
if (isset($subforums[$parent_id][$row['parent_id']]) && !$row['display_on_index'])
{
@@ -490,6 +491,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'link' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
'name' => $subforum_row['name'],
'unread' => $subforum_unread,
+ 'type' => $subforum_row['type'],
);
}
else
@@ -571,6 +573,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'U_SUBFORUM' => $subforum['link'],
'SUBFORUM_NAME' => $subforum['name'],
'S_UNREAD' => $subforum['unread'],
+ 'IS_LINK' => $subforum['type'] == FORUM_LINK,
);
}
$s_subforums_list = (string) implode($user->lang['COMMA_SEPARATOR'], $s_subforums_list);