diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-08-15 17:34:33 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-06 21:47:47 +0200 |
commit | 4e3ac92d05c8e192ef8b794a4f3153b174d9bfd3 (patch) | |
tree | fa948b5b4342d13f874d4f16efd7efaf66e41bde | |
parent | 571a6df9937f4b71b5ceb215673b7058ab147a46 (diff) | |
download | forums-4e3ac92d05c8e192ef8b794a4f3153b174d9bfd3.tar forums-4e3ac92d05c8e192ef8b794a4f3153b174d9bfd3.tar.gz forums-4e3ac92d05c8e192ef8b794a4f3153b174d9bfd3.tar.bz2 forums-4e3ac92d05c8e192ef8b794a4f3153b174d9bfd3.tar.xz forums-4e3ac92d05c8e192ef8b794a4f3153b174d9bfd3.zip |
[ticket/14573] Add UCP breadcrumbs
PHPBB3-14573
-rw-r--r-- | phpBB/includes/functions_module.php | 8 | ||||
-rw-r--r-- | phpBB/ucp.php | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index 88dafc4300..8e9719adfa 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -933,6 +933,14 @@ class p_master 'U_TITLE' => $u_title ); + if (isset($this->module_cache['parents'][$item_ary['id']]) || $item_ary['id'] == $this->p_id) + { + $template->assign_block_vars('navlinks', array( + 'FORUM_NAME' => $item_ary['lang'], + 'U_VIEW_FORUM' => $u_title, + )); + } + $template->assign_block_vars($use_tabular_offset, array_merge($tpl_ary, array_change_key_case($item_ary, CASE_UPPER))); } diff --git a/phpBB/ucp.php b/phpBB/ucp.php index 96a3efea97..26756d8c80 100644 --- a/phpBB/ucp.php +++ b/phpBB/ucp.php @@ -393,6 +393,11 @@ if (!$config['allow_topic_notify'] && !$config['allow_forum_notify']) $vars = array('module', 'id', 'mode'); extract($phpbb_dispatcher->trigger_event('core.ucp_display_module_before', compact($vars))); +$template->assign_block_vars('navlinks', array( + 'FORUM_NAME' => $user->lang('UCP'), + 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}ucp.$phpEx"), +)); + // Select the active module $module->set_active($id, $mode); |