Changeset 35135 for trunk/www


Ignore:
Timestamp:
Mar 18, 2008, 4:21:01 AM (12 years ago)
Author:
jmpp@…
Message:

Change the $by value of the dependency search back to 'library', as using 'dependency' broke clicking on a port's dependency's href
and getting that sole port as a search result (I missed updating the relevant stuff there for things to work); the entire 4500+ ports list
would be returned instead!

Also comment out searching by dependency for the time being, as the functionality is not exactly what I thought: searching for a dependency simply
returns a page for the port name, rather than the ports that depend on what as searched for (what I thought was the behavior). I'll code that behavior
later on and re-enable searching by dependency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/ports.php

    r35134 r35135  
    4242                <option value="category"<?php if ($by == "category") { print " selected=\"selected\""; } ?>>Category</option>
    4343                <option value="maintainer"<?php if ($by == "maintainer") { print " selected=\"selected\""; } ?>>Maintainer</option>
    44                 <option value="dependency"<?php if ($by == "dependency") { print " selected=\"selected\""; } ?>>Dependency</option>
     44<!--                <option value="library"<?php if ($by == "dependency") { print " selected=\"selected\""; } ?>>Dependency</option> -->
    4545                <option value="variant"<?php if ($by == "variant") { print " selected=\"selected\""; } ?>>Variant</option>
    4646                <option value="platform"<?php if ($by == "platform") { print " selected=\"selected\""; } ?>>Platform</option>
     
    9494            $query .= " AND m.portfile=p.name AND m.maintainer LIKE '%" . mysql_real_escape_string($substr) . "%'";
    9595        }
    96         if ($by == "dependency") {
     96        if ($by == "library") {
    9797            $query .= " AND p.name='" . mysql_real_escape_string($substr) . "'";
    9898        }
Note: See TracChangeset for help on using the changeset viewer.