#1468 [NEW]: [Patch] package statistics link to package
| From: | klaus at capitalfocus dot org | Date: | Sat, 22 May 2004 11:11:03 +0000 |
| Subject: | #1468 [NEW]: [Patch] package statistics link to package | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2426@lists.php.net to get a copy of this message | ||
From: klaus at capitalfocus dot org
Operating system:
PHP version: Irrelevant
Package: Web Site
Bug description: [Patch] package statistics link to package
Description:
------------
Fixes the link in 'Statistics for package "<package>"' to point to
/package/<package> rather than /<package>
Klaus (thesaur)
Index: package-stats.php
===================================================================
RCS file: /repository/pearweb/public_html/package-stats.php,v
retrieving revision 1.51
diff -u -r1.51 package-stats.php
--- package-stats.php 20 May 2004 13:49:04 -0000 1.51
+++ package-stats.php 22 May 2004 11:09:12 -0000
@@ -135,7 +135,7 @@
$info = package::info($_GET['pid'],null,false);
if (isset($info['releases']) && sizeof($info['releases'])>0) {
- echo "<h2>Statistics for package \"<a href=\"/" .
$info['name'] .
"\">" . $info['name'] . "</a>\"</h2>\n";
+ echo "<h2>Statistics for package \"<a href=\"/package/" .
$info['name'] . "\">" . $info['name'] .
"</a>\"</h2>\n";
$bb = new Borderbox("General statistics");
echo "Number of releases: <strong>" . count($info['releases']) .
"</strong><br />\n";
echo "Total downloads: <strong>" .
number_format(statistics::package($_GET['pid']), 0, '.', ',') .
"</strong><br />\n";
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=1468&edit=1
--