Skip to content

Commit

Permalink
Merge pull request phpbb#3872 from Zoddo/ticket/11468
Browse files Browse the repository at this point in the history
[ticket/11468] Allow controllers to set paramters of page_header()

* Zoddo/ticket/11468:
  [ticket/11468] Allow controllers to set paramters of page_header()
  • Loading branch information
Tristan Darricau committed Sep 2, 2015
2 parents 8749c99 + cc060a2 commit 2ee8b14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions phpBB/phpbb/controller/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ public function __construct(\phpbb\template\template $template, \phpbb\user $use
* @param string $page_title The title of the page to output
* @param int $status_code The status code to be sent to the page header
* @param bool $display_online_list Do we display online users list
* @param int $item_id Restrict online users to item id
* @param string $item Restrict online users to a certain session item, e.g. forum for session_forum_id
*
* @return Response object containing rendered page
*/
public function render($template_file, $page_title = '', $status_code = 200, $display_online_list = false)
public function render($template_file, $page_title = '', $status_code = 200, $display_online_list = false, $item_id = 0, $item = 'forum')
{
page_header($page_title, $display_online_list);
page_header($page_title, $display_online_list, $item_id, $item);

$this->template->set_filenames(array(
'body' => $template_file,
Expand Down

0 comments on commit 2ee8b14

Please sign in to comment.