From cbb1d37eb6b444025ccb295dab35b3d2041bbac8 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 13 Feb 2012 20:01:17 +0000 Subject: fix comment order url when no question mark in urls git-svn-id: http://piwigo.org/svn/trunk@13156 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/picture_comment.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/picture_comment.inc.php') diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index 89713f0c4..6ace8fa3e 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -133,7 +133,7 @@ SELECT $comments_order = pwg_get_session_var('comments_order', $conf['comments_order']); $template->assign(array( - 'COMMENTS_ORDER_URL' => duplicate_picture_url().'&comments_order='.($comments_order == 'ASC' ? 'DESC' : 'ASC'), + 'COMMENTS_ORDER_URL' => add_url_params( duplicate_picture_url(), array('comments_order'=> ($comments_order == 'ASC' ? 'DESC' : 'ASC') ) ), 'COMMENTS_ORDER_TITLE' => $comments_order == 'ASC' ? l10n('old → new') : l10n('new → old'), )); -- cgit v1.2.3