[ticket/13652] Added $phpbb_dispatcher from global to phpbb_mcp_sorting()

PHPBB3-13652
This commit is contained in:
brunoais 2015-02-25 23:28:42 +00:00
parent 3ac583271f
commit c8be24fd5e

View file

@ -368,7 +368,7 @@ function phpbb_get_pm_data($pm_ids)
*/
function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql, &$sort_order_sql, &$total, $forum_id = 0, $topic_id = 0, $where_sql = 'WHERE')
{
global $db, $user, $auth, $template;
global $db, $user, $auth, $template, $phpbb_dispatcher;
$sort_days = request_var('st', 0);
$min_time = ($sort_days) ? time() - ($sort_days * 86400) : 0;