mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-09 02:12:44 +02:00
[ticket/14573] Add UCP breadcrumbs
PHPBB3-14573
This commit is contained in:
parent
fc0714721e
commit
5292f9c091
@ -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)));
|
||||
}
|
||||
|
||||
|
@ -362,6 +362,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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user