toby Mon Jan 17 13:35:00 2005 EDT
Modified files:
/pearweb/public_html package-info.php
Log:
* Fixed little bug.
* Added info about the trackback URL for blogs not supporting autodiscovery
of trackback information.
http://cvs.php.net/diff.php/pearweb/public_html/package-info.php?r1=1.85&r2=1.86&ty=u
Index: pearweb/public_html/package-info.php
diff -u pearweb/public_html/package-info.php:1.85
pearweb/public_html/package-info.php:1.86
--- pearweb/public_html/package-info.php:1.85 Mon Jan 10 17:58:12 2005
+++ pearweb/public_html/package-info.php Mon Jan 17 13:34:59 2005
@@ -16,7 +16,7 @@
| Authors: Martin Jansen <mj@xxxxxxx> |
| Tomas V.V.Cox <cox@xxxxxxxxxxx> |
+----------------------------------------------------------------------+
- $Id: package-info.php,v 1.85 2005/01/10 22:58:12 toby Exp $
+ $Id: package-info.php,v 1.86 2005/01/17 18:34:59 toby Exp $
*/
require_once 'Damblan/Trackback.php';
@@ -122,7 +122,7 @@
$versions = array_keys($pkg['releases']);
$url = 'http://'.$_SERVER['SERVER_NAME'].'/';
-if (!isset($redirected) && ($redirected !== true)) {
+if (!isset($redirected) || ($redirected !== true)) {
$url .= 'package/';
}
$url .= $params['package|pacid'];
@@ -411,7 +411,9 @@
$trackbackIsAdmin = (isset($_COOKIE['PEAR_USER']) &&
$karma->has($_COOKIE['PEAR_USER'], 'pear.dev'));
// Generate trackback list
$trackbacks = Damblan_Trackback::listTrackbacks($dbh, $name,
!$trackbackIsAdmin);
-
+
+ print '<p>The trackback URL for this package is: <a
href="'.$tmpTrackback->trackback_url.'">'.$tmpTrackback->trackback_url.'</a>.';
+
print '<table border="0" cellspacing="0" cellpadding="2" style="width:
100%">';
foreach ($trackbacks as $trackback) {
print '<tr>';
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|