[31375] trunk/www/ports.php
jmpp at macports.org
jmpp at macports.org
Wed Nov 21 12:41:42 PST 2007
Revision: 31375
http://trac.macosforge.org/projects/macports/changeset/31375
Author: jmpp at macports.org
Date: 2007-11-21 12:41:41 -0800 (Wed, 21 Nov 2007)
Log Message:
-----------
Why weren't we displaying variants, anyway....?
Modified Paths:
--------------
trunk/www/ports.php
Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php 2007-11-21 20:27:53 UTC (rev 31374)
+++ trunk/www/ports.php 2007-11-21 20:41:41 UTC (rev 31375)
@@ -182,24 +182,24 @@
<?php
}
}
+
/* VARIANTS */
-//
-// $nquery = "SELECT variant FROM $portsdb.variants WHERE portfile='" . mysql_real_escape_string($row['name']) . "' ORDER BY variant";
-// $nresult = mysql_query($nquery);
-// if ($nresult && mysql_num_rows($nresult) > 0) {
-//?>
-// <br />
-// <i>Variants:</i>
-//<?php
-// while ($nrow = mysql_fetch_array($nresult)) {
-// $variant = $nrow[0];
-//?>
-// <a href="<?php echo $_SERVER['PHP_SELF']; ?>?by=variant&substr=<?php echo urlencode($variant); ?>"><?php echo htmlspecialchars($variant); ?></a>
-//<?php
-// }
-// }
-//
+ $nquery = "SELECT variant FROM $portsdb.variants WHERE portfile='" . mysql_real_escape_string($row['name']) . "' ORDER BY variant";
+ $nresult = mysql_query($nquery);
+ if ($nresult && mysql_num_rows($nresult) > 0) {
?>
+ <br />
+ <i>Variants:</i>
+<?php
+ while ($nrow = mysql_fetch_array($nresult)) {
+ $variant = $nrow[0];
+?>
+ <a href="<?php echo $_SERVER['PHP_SELF']; ?>?by=variant&substr=<?php echo urlencode($variant); ?>"><?php echo htmlspecialchars($variant); ?></a>
+<?php
+ }
+ }
+
+?>
<br />
</dd>
<?php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071121/aa6c81fb/attachment-0001.html
More information about the macports-changes
mailing list