com web/bugs: Enable logined user the ability to subsribe bugs: www/bug.php
| From: | Rasmus Lerdorf | Date: | Sat, 13 Oct 2012 16:25:43 +0000 |
| Subject: | com web/bugs: Enable logined user the ability to subsribe bugs: www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16875@lists.php.net to get a copy of this message | ||
Commit: 2847d9989a48de70e3408cf0662fe92c2c01fedf
Author: Reeze Xia <reeze@php.net> Sun, 14 Oct 2012 00:25:43 +0800
Parents: 3d21e3d353bcfcc53001dd1aa5538e2f95ddf875
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=2847d9989a48de70e3408cf0662fe92c2c01fedf
Log:
Enable logined user the ability to subsribe bugs
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index 314b89f..0f1475a 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -69,7 +69,7 @@ if (isset($_POST['subscribe_to_bug']) ||
isset($_POST['unsubscribe_to_bug'])) {
}
if (empty($errors)) {
- if ($logged_in && $auth_user->registered && !empty($auth_user->email)) {
+ if ($logged_in && !empty($auth_user->email)) {
$email = $auth_user->email;
} else {
$email = isset($_POST['in']['commentemail']) ?
$_POST['in']['commentemail'] : '';
@@ -957,7 +957,11 @@ if ($edit == 1 || $edit == 2) { ?>
<?php if ($logged_in) { ?>
<div class="explain">
- <h1><a href="patch-add.php?bug_id=<?php echo $bug_id; ?>">Click Here
to Submit a Patch</a></h1>
+ <h1>
+ <a href="patch-add.php?bug_id=<?php echo $bug_id; ?>">Click Here to Submit
a Patch</a>
+ <input type="submit" name="subscribe_to_bug" value="Subscribe"
/>
+ <input type="submit" name="unsubscribe_to_bug"
value="Unsubscribe" />
+ </h1>
</div>
<?php } ?>