phpBB

Code Changes

File: includes/mcp/mcp_queue.php

  Unmodified   Added   Modified   Removed
Line 156Line 156

$post_id = $request->variable('p', 0);
$topic_id = $request->variable('t', 0);


$post_id = $request->variable('p', 0);
$topic_id = $request->variable('t', 0);

 
				$topic_info = [];


/* @var $phpbb_notifications \phpbb\notification\manager */
$phpbb_notifications = $phpbb_container->get('notification_manager');


/* @var $phpbb_notifications \phpbb\notification\manager */
$phpbb_notifications = $phpbb_container->get('notification_manager');

Line 370Line 371
				$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 652
					$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);

Line 1428Line 1433
					$redirect = append_sid($phpbb_root_path . 'viewforum.' . $phpEx, 'f=' . $request->variable('f', 0));
}
}

					$redirect = append_sid($phpbb_root_path . 'viewforum.' . $phpEx, 'f=' . $request->variable('f', 0));
}
}

 

$disapprove_reason_lang = $disapprove_reason_lang ?? '';


/**
* Perform additional actions during post(s) disapproval


/**
* Perform additional actions during post(s) disapproval