aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/picture_comment.inc.php2
1 files changed, 1 insertions, 1 deletions
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'),
));