aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-11-24 14:16:37 +0100
committerTristan Darricau <github@nicofuma.fr>2016-11-24 14:16:37 +0100
commit3e1f9c42011951d0bced701dbb0daeed9bf2121d (patch)
tree16d25ccbac4c7be7e748a7950f656f6e5b17287e /phpBB/includes/functions_display.php
parent592ef2eff4bb035fc2a835e532ce0bd8c5e0ea40 (diff)
parent5a82061c3af79c09e5f95a562e477caa283a7b47 (diff)
downloadforums-3e1f9c42011951d0bced701dbb0daeed9bf2121d.tar
forums-3e1f9c42011951d0bced701dbb0daeed9bf2121d.tar.gz
forums-3e1f9c42011951d0bced701dbb0daeed9bf2121d.tar.bz2
forums-3e1f9c42011951d0bced701dbb0daeed9bf2121d.tar.xz
forums-3e1f9c42011951d0bced701dbb0daeed9bf2121d.zip
Merge pull request #4508 from marc1706/ticket/9211
[ticket/9211] Use different icon for link subforum in forum legend * marc1706/ticket/9211: [ticket/9211] Use different icon for link subforum in forum legend
Diffstat (limited to 'phpBB/includes/functions_display.php')
-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);