Changeset 13156


Ignore:
Timestamp:
Feb 13, 2012, 9:01:17 PM (12 years ago)
Author:
rvelices
Message:

fix comment order url when no question mark in urls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_comment.inc.php

    r13088 r13156  
    134134
    135135    $template->assign(array(
    136       'COMMENTS_ORDER_URL' => duplicate_picture_url().'&comments_order='.($comments_order == 'ASC' ? 'DESC' : 'ASC'),
     136      'COMMENTS_ORDER_URL' => add_url_params( duplicate_picture_url(), array('comments_order'=> ($comments_order == 'ASC' ? 'DESC' : 'ASC') ) ),
    137137      'COMMENTS_ORDER_TITLE' => $comments_order == 'ASC' ? l10n('old → new') : l10n('new → old'),
    138138      ));
Note: See TracChangeset for help on using the changeset viewer.