1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 20:24:08 +02:00

[ticket/13844] FAQ in new controller format

PHPBB3-13844
This commit is contained in:
Joas Schilling
2015-05-16 22:06:37 +02:00
parent ff7e9dc912
commit 07231e7943
12 changed files with 192 additions and 24 deletions

View File

@@ -28,8 +28,9 @@ $user->setup();
$controller_helper = $phpbb_container->get('controller.helper');
$response = new \Symfony\Component\HttpFoundation\RedirectResponse(
$controller_helper->route('phpbb_help_controller', array(
'mode' => $request->variable('mode', 'faq'),
), 301)
$controller_helper->route(
$request->variable('mode', 'faq') === 'bbcode' ? 'phpbb_help_bbcode_controller' : 'phpbb_help_faq_controller'
),
301
);
$response->send();