aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/configuration.php5
-rw-r--r--admin/themes/default/template/configuration.tpl7
2 files changed, 11 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index b7a06aa74..6e4bb0311 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -419,7 +419,10 @@ switch ($page['section'])
'comments',
array(
'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'],
- ));
+ 'comments_order'=>$conf['comments_order'],
+ 'comments_order_options'=> $sort_directions
+ )
+ );
foreach ($comments_checkboxes as $checkbox)
{
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl
index 521ad40c0..232b00356 100644
--- a/admin/themes/default/template/configuration.tpl
+++ b/admin/themes/default/template/configuration.tpl
@@ -203,6 +203,13 @@ jQuery(document).ready(function () {
</span>
<input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}">
</li>
+
+ <li>
+ <span class="property">{'Default comments order'|@translate}</span>
+ <select name="comments_order">
+ {html_options options=$comments.comments_order_options selected=$comments.comments_order}
+ </select>
+ </li>
<li>
<label>