diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-22 22:44:50 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-22 22:44:50 +0100 |
| commit | 19a236205f6e0892be4301b422f5da7479e12941 (patch) | |
| tree | d70c1aafc0f3378c5bcb00ea063d19b284738144 /phpBB/includes/functions.php | |
| parent | 9bd6535a7df400e73d6f6d69d2b4b1a5d5714bcd (diff) | |
| download | forums-19a236205f6e0892be4301b422f5da7479e12941.tar forums-19a236205f6e0892be4301b422f5da7479e12941.tar.gz forums-19a236205f6e0892be4301b422f5da7479e12941.tar.bz2 forums-19a236205f6e0892be4301b422f5da7479e12941.tar.xz forums-19a236205f6e0892be4301b422f5da7479e12941.zip | |
[ticket/13647] Generate route links for faq
PHPBB3-13647
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 66220d8864..4e8e6f475c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4816,6 +4816,8 @@ function page_header($page_title = '', $display_online_list = false, $item_id = } } + /** @var \phpbb\controller\helper $controller_helper */ + $controller_helper = $phpbb_container->get('controller.helper'); $notification_mark_hash = generate_link_hash('mark_all_notifications_read'); // The following assigns all _common_ variables that may be used at any point in a template. @@ -4869,7 +4871,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id = 'U_PROFILE' => append_sid("{$phpbb_root_path}ucp.$phpEx"), 'U_USER_PROFILE' => get_username_string('profile', $user->data['user_id'], $user->data['username'], $user->data['user_colour']), 'U_MODCP' => append_sid("{$phpbb_root_path}mcp.$phpEx", false, true, $user->session_id), - 'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"), + 'U_FAQ' => $controller_helper->route('phpbb_help_controller', array('mode' => 'faq')), 'U_SEARCH_SELF' => append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=egosearch'), 'U_SEARCH_NEW' => append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=newposts'), 'U_SEARCH_UNANSWERED' => append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=unanswered'), |
