[35133] trunk/www/ports.php

jmpp at macports.org jmpp at macports.org
Mon Mar 17 20:46:59 PDT 2008


Revision: 35133
          http://trac.macosforge.org/projects/macports/changeset/35133
Author:   jmpp at macports.org
Date:     2008-03-17 20:46:59 -0700 (Mon, 17 Mar 2008)

Log Message:
-----------
Always use 'category' rather than the 'cat' abbreviation, to be consistent all throughout.

Modified Paths:
--------------
    trunk/www/ports.php

Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php	2008-03-18 03:43:47 UTC (rev 35132)
+++ trunk/www/ports.php	2008-03-18 03:46:59 UTC (rev 35133)
@@ -39,7 +39,7 @@
             <label>Search by:</label>
             <select name="by">
                 <option value="name"<?php if ($by == "name") { print " selected=\"selected\""; } ?>>Software Title</option>
-                <option value="cat"<?php if ($by == "cat") { print " selected=\"selected\""; } ?>>Category</option>
+                <option value="category"<?php if ($by == "category") { print " selected=\"selected\""; } ?>>Category</option>
                 <option value="maintainer"<?php if ($by == "maintainer") { print " selected=\"selected\""; } ?>>Maintainer</option>
                 <option value="dep"<?php if ($by == "dep") { print " selected=\"selected\""; } ?>>Dependency</option>
             </select>
@@ -64,7 +64,7 @@
                 print "<li>\n<ul>\n";
                 $entries_per_colum = 0;
                 while ($row = mysql_fetch_assoc($result)) {
-                    print '<li><a href="' . $_SERVER['PHP_SELF'] . '?by=cat&amp;substr=' . urlencode($row['category']) . '">'
+                    print '<li><a href="' . $_SERVER['PHP_SELF'] . '?by=category&amp;substr=' . urlencode($row['category']) . '">'
                     . htmlspecialchars($row['category']) . '</a></li>';
                     if ($entries_per_colum == $max_entries_per_column) break;
                     $entries_per_colum++;
@@ -86,7 +86,7 @@
         if ($by == "dependency") {
             $query .= " AND p.name='" . mysql_real_escape_string($substr) . "'";
         }
-        if ($by == "cat") {
+        if ($by == "category") {
             $tables .= ", $portsdb_name.categories c";
             $query .= " AND c.portfile=p.name AND c.category='" . mysql_real_escape_string($substr) . "'";
         }
@@ -153,7 +153,7 @@
                         while ($nrow = mysql_fetch_assoc($nresult)) {
                             if ($primary) { print "<b>"; }
 ?>
-                            <a href="<?php print $_SERVER['PHP_SELF']; ?>?by=cat&amp;substr=<?php print urlencode($nrow['category']); ?>">
+                            <a href="<?php print $_SERVER['PHP_SELF']; ?>?by=category&amp;substr=<?php print urlencode($nrow['category']); ?>">
                             <?php print htmlspecialchars($nrow['category']); ?></a>
 <?php
                             if ($primary) { print "</b>"; }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080317/2b313104/attachment.html 


More information about the macports-changes mailing list