From e474f947fa8763daad243166a57f966bd304642e Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 17 Feb 2012 19:30:52 +0000 Subject: 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 --- admin/configuration.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'admin/configuration.php') 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 ) ); -- cgit v1.2.3