diff options
Diffstat (limited to 'phpBB/phpbb/help')
-rw-r--r-- | phpBB/phpbb/help/controller/help.php | 6 | ||||
-rw-r--r-- | phpBB/phpbb/help/manager.php | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/phpbb/help/controller/help.php b/phpBB/phpbb/help/controller/help.php index 9cc3b0c8b4..3bf6fe3098 100644 --- a/phpBB/phpbb/help/controller/help.php +++ b/phpBB/phpbb/help/controller/help.php @@ -64,6 +64,7 @@ class help */ public function handle($mode) { + $template_file = 'faq_body.html'; switch ($mode) { case 'faq': @@ -85,13 +86,16 @@ class help * @var string lang_file Language file containing the help data * @var string ext_name Vendor and extension name where the help * language file can be loaded from + * @var string template_file Template file name * @since 3.1.4-RC1 + * @changed 3.1.11-RC1 Added template_file var */ $vars = array( 'page_title', 'mode', 'lang_file', 'ext_name', + 'template_file', ); extract($this->dispatcher->trigger_event('core.faq_mode_validation', compact($vars))); @@ -113,7 +117,7 @@ class help $this->assign_to_template($this->user->help); make_jumpbox(append_sid("{$this->root_path}viewforum.{$this->php_ext}")); - return $this->helper->render('faq_body.html', $page_title); + return $this->helper->render($template_file, $page_title); } /** diff --git a/phpBB/phpbb/help/manager.php b/phpBB/phpbb/help/manager.php index 39f52d343b..1637c58a61 100644 --- a/phpBB/phpbb/help/manager.php +++ b/phpBB/phpbb/help/manager.php @@ -18,7 +18,7 @@ namespace phpbb\help; */ class manager { - /** @var \phpbb\event\dispatcher */ + /** @var \phpbb\event\dispatcher_interface */ protected $dispatcher; /** @var \phpbb\language\language */ @@ -33,11 +33,11 @@ class manager /** * Constructor * - * @param \phpbb\event\dispatcher $dispatcher + * @param \phpbb\event\dispatcher_interface $dispatcher * @param \phpbb\language\language $language * @param \phpbb\template\template $template */ - public function __construct(\phpbb\event\dispatcher $dispatcher, \phpbb\language\language $language, \phpbb\template\template $template) + public function __construct(\phpbb\event\dispatcher_interface $dispatcher, \phpbb\language\language $language, \phpbb\template\template $template) { $this->dispatcher = $dispatcher; $this->language = $language; |