mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 16:42:59 +02:00
feature 2379: option to change comments order: change caption again, fix a bug in config page (induced by r13087)
git-svn-id: http://piwigo.org/svn/trunk@13224 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -124,6 +124,11 @@ $sort_fields = array(
|
||||
'rank ASC' => l10n('manual sort order'),
|
||||
);
|
||||
|
||||
$comments_order = array(
|
||||
'ASC' => l10n('Show oldest comments first'),
|
||||
'DESC' => l10n('Show latest comment first'),
|
||||
);
|
||||
|
||||
|
||||
//------------------------------ verification and registration of modifications
|
||||
if (isset($_POST['submit']))
|
||||
@@ -359,7 +364,7 @@ switch ($page['section'])
|
||||
array(
|
||||
'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'],
|
||||
'comments_order'=>$conf['comments_order'],
|
||||
'comments_order_options'=> $sort_directions
|
||||
'comments_order_options'=> $comments_order
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user