cvs: pearweb /public_html/bugs patch-display.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 22 Mar 2009 17:48:58 +0000 |
| Subject: | cvs: pearweb /public_html/bugs patch-display.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8278@lists.php.net to get a copy of this message | ||
dufuz Sun Mar 22 17:48:58 2009 UTC
Modified files:
/pearweb/public_html/bugs patch-display.php
Log:
Bug #16036 Bug tracker emails: Patch links broken
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/patch-display.php?r1=1.15&r2=1.16&diff_format=u
Index: pearweb/public_html/bugs/patch-display.php
diff -u pearweb/public_html/bugs/patch-display.php:1.15
pearweb/public_html/bugs/patch-display.php:1.16
--- pearweb/public_html/bugs/patch-display.php:1.15 Sat Apr 5 22:58:46 2008
+++ pearweb/public_html/bugs/patch-display.php Sun Mar 22 17:48:58 2009
@@ -1,6 +1,6 @@
<?php
require 'include/functions.inc';
-if (!isset($_GET['bug_id'])) {
+if (!isset($_GET['bug_id']) && !isset($_GET['bug'])) {
response_header('Error :: no bug selected');
report_error('No patch selected to view');
response_footer();
@@ -9,7 +9,11 @@
$revision = $_GET['revision'];
$patch = $_GET['patch'];
-$bug_id = (int)$_GET['bug_id'];
+if (isset($_GET['bug'])) {
+ $bug_id = (int)$_GET['bug'];
+} else {
+ $bug_id = (int)$_GET['bug_id'];
+}
require 'bugs/patchtracker.php';
$patchinfo = new Bugs_Patchtracker;