com web/bugs: - Added link to the PECL project page when the package is from PECL: include/functions.php www/bug.php
| From: | Felipe Pena | Date: | Wed, 13 Jun 2012 13:01:08 +0000 |
| Subject: | com web/bugs: - Added link to the PECL project page when the package is from PECL: include/functions.php www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13685@lists.php.net to get a copy of this message | ||
Commit: f3190609657b05cb1add91d0528b53174c0965c9
Author: Felipe Pena <felipensp@gmail.com> Wed, 13 Jun 2012 10:01:08 -0300
Parents: d236d4c3bf2d3bb30cdfc0e3a1cce52e5c3f6e39
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=f3190609657b05cb1add91d0528b53174c0965c9
Log:
- Added link to the PECL project page when the package is from PECL
Changed paths:
M include/functions.php
M www/bug.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 2b6e027..de82d79 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1607,6 +1607,7 @@ function bugs_get_bug ($bug_id)
UNIX_TIMESTAMP(b.ts1) AS submitted,
UNIX_TIMESTAMP(b.ts2) AS modified,
COUNT(bug=b.id) AS votes,
+ IFNULL((SELECT z.project FROM bugdb_pseudo_packages z WHERE z.name = b.package_name LIMIT 1),
"php") project,
SUM(reproduced) AS reproduced, SUM(tried) AS tried,
SUM(sameos) AS sameos, SUM(samever) AS samever,
AVG(score)+3 AS average, STD(score) AS deviation
diff --git a/www/bug.php b/www/bug.php
index 71c928f..b707530 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -653,7 +653,7 @@ if (!$show_bug_info) {
<th class="details">Status:</th>
<td><?php echo htmlspecialchars($bug['status']); ?></td>
<th class="details">Package:</th>
- <td><a href="search.php?cmd=display&package_name[]=<?php echo
urlencode($bug['package_name']), '">',
htmlspecialchars($bug['package_name']); ?></a></td>
+ <td><a href="search.php?cmd=display&package_name[]=<?php echo
urlencode($bug['package_name']), '">',
htmlspecialchars($bug['package_name']); ?></a><?php echo
$bug['project'] == 'pecl' ? ' (<a href="http://pecl.php.net/package/'..
htmlspecialchars($bug['package_name']) . '"
target="_blank">PECL</a>' : ''; ?></td>
</tr>
<tr id="situation">