aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTobi Schäfer <tobi.schaefer@gmail.com>2015-01-06 15:31:27 +0100
committerTobi Schäfer <tobi.schaefer@gmail.com>2015-01-06 15:31:27 +0100
commitde3d7aca169cce5b2017c15bc77d877aa272aabf (patch)
tree9e7ee17bf2aec413b09f91b5609166da820b95fe /phpBB
parent838b1250f64b31c8bb7a3dce8c04f7039ef22672 (diff)
downloadforums-de3d7aca169cce5b2017c15bc77d877aa272aabf.tar
forums-de3d7aca169cce5b2017c15bc77d877aa272aabf.tar.gz
forums-de3d7aca169cce5b2017c15bc77d877aa272aabf.tar.bz2
forums-de3d7aca169cce5b2017c15bc77d877aa272aabf.tar.xz
forums-de3d7aca169cce5b2017c15bc77d877aa272aabf.zip
[ticket/13453] Sort param in Canonical URL
PHPBB3-13453
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewforum.php2
-rw-r--r--phpBB/viewtopic.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index ce079cb262..8d2011c5c1 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -370,7 +370,7 @@ $template->assign_vars(array(
'U_MCP' => ($auth->acl_get('m_', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "f=$forum_id&amp;i=main&amp;mode=forum_view", true, $user->session_id) : '',
'U_POST_NEW_TOPIC' => ($auth->acl_get('f_post', $forum_id) || $user->data['user_id'] == ANONYMOUS) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=post&amp;f=' . $forum_id) : '',
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id" . ((strlen($u_sort_param)) ? "&amp;$u_sort_param" : '') . (($start == 0) ? '' : "&amp;start=$start")),
- 'U_CANONICAL' => generate_board_url() . '/' . append_sid("viewforum.$phpEx", "f=$forum_id" . ((strlen($u_sort_param)) ? "&amp;$u_sort_param" : '') . (($start) ? "&amp;start=$start" : ''), true, ''),
+ 'U_CANONICAL' => generate_board_url() . '/' . append_sid("viewforum.$phpEx", "f=$forum_id" . (($start) ? "&amp;start=$start" : ''), true, ''),
'U_MARK_TOPICS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . "&amp;f=$forum_id&amp;mark=topics&amp;mark_time=" . time()) : '',
));
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index a44169d3f1..5f897e8d94 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -692,7 +692,7 @@ $template->assign_vars(array(
'U_TOPIC' => "{$server_path}viewtopic.$phpEx?f=$forum_id&amp;t=$topic_id",
'U_FORUM' => $server_path,
'U_VIEW_TOPIC' => $viewtopic_url,
- 'U_CANONICAL' => generate_board_url() . '/' . append_sid("viewtopic.$phpEx", "t=$topic_id" . ((strlen($u_sort_param)) ? "&amp;$u_sort_param" : '') . (($start) ? "&amp;start=$start" : ''), true, ''),
+ 'U_CANONICAL' => generate_board_url() . '/' . append_sid("viewtopic.$phpEx", "t=$topic_id" . (($start) ? "&amp;start=$start" : ''), true, ''),
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id),
'U_VIEW_OLDER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;view=previous"),
'U_VIEW_NEWER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;view=next"),