Commit:    c55b95109388eacde2f93ae6f14b91b74eace089
Author:    Daniel Convissor <[email protected]>         Thu, 2 
Jan 2014 22:27:48 -0500
Parents:   a567f5d3113b2cb3d5519424dd7412d2f57a762c
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=c55b95109388eacde2f93ae6f14b91b74eace089

Log:
Replace textarea with message if user comments are blocked.

Changed paths:
  M  www/bug.php


Diff:
diff --git a/www/bug.php b/www/bug.php
index c6186e7..173c80e 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -929,12 +929,14 @@ if ($edit == 1 || $edit == 2) { ?>
                <label for="ncomment" accesskey="m"><b>New<?php if ($edit == 1) 
echo "/Additional"; ?> Co<span class="accesskey">m</span>ment:</b></label>
        </p>
        <?php
-       if ($bug['status'] !== 'Spam') {
+       if ($bug['block_user_comment'] == 'Y' && $logged_in != 'developer') {
+               echo 'Further comment on this bug is unnecessary.';
+       } elseif ($bug['status'] === 'Spam' && $logged_in != 'developer') {
+               echo 'This bug has a SPAM status, so no additional comments are 
needed.';
+       } else {
        ?>
                <textarea cols="80" rows="8" name="ncomment" id="ncomment" 
wrap="soft"><?php echo htmlspecialchars($ncomment); ?></textarea>
        <?php
-       } else {
-               echo 'This bug has a SPAM status, so no additional comments are 
needed.';
        }
        ?>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to