diff options
author | mistic100 <mistic@piwigo.org> | 2012-02-17 19:30:52 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2012-02-17 19:30:52 +0000 |
commit | e474f947fa8763daad243166a57f966bd304642e (patch) | |
tree | 30d7e0e193c57fb7cf6b6f2ca45540913cfaa892 /admin | |
parent | 553ba4569c6a774de5d81e1b0af50b139ce40c94 (diff) |
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
Diffstat (limited to 'admin')
-rw-r--r-- | admin/configuration.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index c71da8d67..671a68a53 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -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 ) ); |