[PATCH] pecl packages in pear

From: Date: Fri, 12 Dec 2003 21:47:00 +0000
Subject: [PATCH] pecl packages in pear
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24360@lists.php.net to get a copy of this message
I don't know if this should be considered a bug or not, but the package browser shows pecl packages when in the top level (and doesn't show them when browsing a category). Assuming pecl packages should only be reachable through pecl.php.net, here is a patch that fixes that. --- php_cvs/pearweb/public_html/packages.php 2003-12-12 16:42:10.000000000 +0100 +++ packages.php 2003-12-12 19:57:56.000000000 +0100 @@ -113,7 +113,9 @@ // Get names of sub-packages $subpkgs = $dbh->getAssoc("SELECT p.category, p.id AS id, p.name AS name, p.summary AS summary". " FROM packages p, categories c". - " WHERE c.parent $category_where AND p.category = c.id ORDER BY p.name", + " WHERE c.parent $category_where ". + " AND p.package_type = 'pear' ". + " AND p.category = c.id ORDER BY p.name", false, null, DB_FETCHMODE_ASSOC, true); $max_sub_links = 4;

« previous php.pear.dev (#24360) next »