phpBB

Code Changes

File: includes/mcp/mcp_queue.php

  Unmodified   Added   Modified   Removed
Line 28Line 28
	var $p_master;
var $u_action;


	var $p_master;
var $u_action;


	public function __construct(&$p_master)

	public function __construct($p_master)

	{

	{

		$this->p_master = &$p_master;

		$this->p_master = $p_master;

	}

public function main($id, $mode)

	}

public function main($id, $mode)

Line 370Line 370
				$topic_id = $request->variable('t', 0);
$forum_info = array();


				$topic_id = $request->variable('t', 0);
$forum_info = array();


				/* @var $pagination \phpbb\pagination */
$pagination = $phpbb_container->get('pagination');


				// If 'sort' is set, "Go" was pressed which is located behind the forums <select> box
// Then, unset the topic id so it does not override the forum id
$topic_id = $request->is_set_post('sort') ? 0 : $topic_id;


if ($topic_id)
{


if ($topic_id)
{

Line 650Line 651
					$template->assign_block_vars('postrow', $post_row);
}
unset($rowset, $forum_names);

					$template->assign_block_vars('postrow', $post_row);
}
unset($rowset, $forum_names);

 

/* @var \phpbb\pagination $pagination */
$pagination = $phpbb_container->get('pagination');


$base_url = $this->u_action . "&amp;f=$forum_id&amp;st=$sort_days&amp;sk=$sort_key&amp;sd=$sort_dir";
$pagination->generate_template_pagination($base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start);


$base_url = $this->u_action . "&amp;f=$forum_id&amp;st=$sort_days&amp;sk=$sort_key&amp;sd=$sort_dir";
$pagination->generate_template_pagination($base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start);