aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/configuration.php4
-rw-r--r--admin/themes/default/template/configuration.tpl14
2 files changed, 17 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 6132c7806..c615d64f1 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -73,7 +73,9 @@ $comments_checkboxes = array(
'user_can_delete_comment',
'user_can_edit_comment',
'email_admin_on_comment_edition',
- 'email_admin_on_comment_deletion'
+ 'email_admin_on_comment_deletion',
+ 'comments_author_mandatory',
+ 'comments_email_mandatory',
);
$display_checkboxes = array(
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl
index 651df8eba..388e26d0d 100644
--- a/admin/themes/default/template/configuration.tpl
+++ b/admin/themes/default/template/configuration.tpl
@@ -227,6 +227,20 @@ jQuery(document).ready(function () {
{'Validation'|@translate}
</label>
</li>
+
+ <li>
+ <label>
+ <input type="checkbox" name="comments_author_mandatory" {if ($comments.comments_author_mandatory)}checked="checked"{/if}>
+ {'Username is mandatory'|@translate}
+ </label>
+ </li>
+
+ <li>
+ <label>
+ <input type="checkbox" name="comments_email_mandatory" {if ($comments.comments_email_mandatory)}checked="checked"{/if}>
+ {'Email address is mandatory'|@translate}
+ </label>
+ </li>
<li>
<label>