com web/bugs: - Also for "Add Comment" tab: replace textarea with message if user comments are blocked. (Bug #66392): www/bug.php
| From: | Daniel Convissor | Date: | Sun, 05 Jan 2014 02:12:16 +0000 |
| Subject: | com web/bugs: - Also for "Add Comment" tab: replace textarea with message if user comments are blocked. (Bug #66392): www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-18040@lists.php.net to get a copy of this message | ||
Commit: 861c7583817c8e79879baaa018ad9397a86eda93
Author: Daniel Convissor <danielc@analysisandsolutions.com> Sat, 4 Jan 2014
21:12:16 -0500
Parents: 1d6efd542b8f5858536c099b32052ef7a891aa07
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=861c7583817c8e79879baaa018ad9397a86eda93
Log:
- Also for "Add Comment" tab: replace textarea with message if user comments are blocked.
(Bug #66392)
Bugs:
https://bugs.php.net/66392
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index 1b4f389..183b354 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -1031,7 +1031,19 @@ if (!empty($_POST['captcha']) &&
empty($ok_to_submit_report)) {
<div>
<input type="hidden" name="id" value="<?php echo $bug_id;
?>" />
<input type="hidden" name="edit" value="<?php echo $edit;
?>" />
+
+ <?php
+ 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="10" name="ncomment"
wrap="soft"><?php echo htmlspecialchars($ncomment); ?></textarea>
+ <?php
+ }
+ ?>
+
<br /><input type="submit" name="preview"
value="Preview"> <input type="submit" value="Submit"
/>
</div>