diff --git a/public_html/layout/denim/comment/commentform.thtml b/public_html/layout/denim/comment/commentform.thtml index b30945ea5..eea96ee80 100644 --- a/public_html/layout/denim/comment/commentform.thtml +++ b/public_html/layout/denim/comment/commentform.thtml @@ -6,6 +6,7 @@
+ {!if is_anon}
{lang_importantstuff}
@@ -18,6 +19,7 @@
+ {!endif}
{lang_username}
diff --git a/public_html/layout/denim/comment/commentform_advanced.thtml b/public_html/layout/denim/comment/commentform_advanced.thtml index 4ee1cdf97..9396dfdbc 100644 --- a/public_html/layout/denim/comment/commentform_advanced.thtml +++ b/public_html/layout/denim/comment/commentform_advanced.thtml @@ -6,6 +6,7 @@
+ {!if is_anon}
{lang_importantstuff}
@@ -18,6 +19,7 @@
+ {!endif}
{lang_username}
diff --git a/public_html/layout/denim_three/comment/commentform.thtml b/public_html/layout/denim_three/comment/commentform.thtml index a78cb9cce..455be79b8 100644 --- a/public_html/layout/denim_three/comment/commentform.thtml +++ b/public_html/layout/denim_three/comment/commentform.thtml @@ -6,6 +6,7 @@
+ {!if is_anon}
{lang_importantstuff}
@@ -18,6 +19,7 @@
+ {!endif}
{lang_username}
diff --git a/public_html/layout/denim_three/comment/commentform_advanced.thtml b/public_html/layout/denim_three/comment/commentform_advanced.thtml index 9ed9e02eb..836768582 100644 --- a/public_html/layout/denim_three/comment/commentform_advanced.thtml +++ b/public_html/layout/denim_three/comment/commentform_advanced.thtml @@ -6,6 +6,7 @@
+ {!if is_anon}
{lang_importantstuff}
@@ -18,6 +19,7 @@
+ {!endif}
{lang_username}
diff --git a/public_html/layout/modern_curve/comment/commentform.thtml b/public_html/layout/modern_curve/comment/commentform.thtml index 8a1ac473f..e029ddea8 100644 --- a/public_html/layout/modern_curve/comment/commentform.thtml +++ b/public_html/layout/modern_curve/comment/commentform.thtml @@ -35,6 +35,7 @@
+ {!if is_anon}
{lang_importantstuff}
@@ -47,6 +48,7 @@
+ {!endif} {captcha} diff --git a/public_html/layout/modern_curve/comment/commentform_advanced.thtml b/public_html/layout/modern_curve/comment/commentform_advanced.thtml index 28bbb58d4..ab8a1dc63 100644 --- a/public_html/layout/modern_curve/comment/commentform_advanced.thtml +++ b/public_html/layout/modern_curve/comment/commentform_advanced.thtml @@ -42,6 +42,7 @@
+ {!if is_anon}
{lang_importantstuff}
@@ -54,6 +55,7 @@
+ {!endif} {captcha} diff --git a/system/lib-comment.php b/system/lib-comment.php index f34f181e9..61cc2ef07 100644 --- a/system/lib-comment.php +++ b/system/lib-comment.php @@ -855,8 +855,9 @@ function CMT_commentForm($title, $comment, $sid, $pid = 0, $type, $mode, $postMo if (empty($_USER['uid'])) { $uid = 1; } else { - $uid = $_USER['uid']; + $uid = (int) $_USER['uid']; } + $isAnon = ($uid <= 1); if (empty($format)) { if (isset($_REQUEST['format'])) { @@ -1248,6 +1249,7 @@ function CMT_commentForm($title, $comment, $sid, $pid = 0, $type, $mode, $postMo $allowed_html .= COM_allowedHTML($permission, false, 1, $pm); } $allowed_html .= COM_allowedAutotags(); + $comment_template->set_var('is_anon', $isAnon); $comment_template->set_var('allowed_html', $allowed_html); $comment_template->set_var('lang_importantstuff', $LANG03[18]); $comment_template->set_var('lang_instr_line1', $LANG03[19]);