cvs: pearweb /public_html/error 404.php

From: Date: Sat, 03 May 2008 03:27:07 +0000
Subject: cvs: pearweb /public_html/error 404.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7503@lists.php.net to get a copy of this message
dufuz Sat May 3 03:27:07 2008 UTC Modified files: /pearweb/public_html/error 404.php Log: use SITE instead of hardcoded pear for package type http://cvs.php.net/viewvc.cgi/pearweb/public_html/error/404.php?r1=1.30&r2=1.31&diff_format=u Index: pearweb/public_html/error/404.php diff -u pearweb/public_html/error/404.php:1.30 pearweb/public_html/error/404.php:1.31 --- pearweb/public_html/error/404.php:1.30 Thu Mar 6 21:37:57 2008 +++ pearweb/public_html/error/404.php Sat May 3 03:27:07 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: 404.php,v 1.30 2008/03/06 21:37:57 dufuz Exp $ + $Id: 404.php,v 1.31 2008/05/03 03:27:07 dufuz Exp $ */ /** @@ -68,10 +68,10 @@ // Check less strictly if nothing has been found previously $sql = "SELECT p.id, p.name, p.summary FROM packages p - WHERE package_type = 'pear' AND approved = 1 AND name LIKE ? + WHERE package_type = ? AND approved = 1 AND name LIKE ? ORDER BY p.name"; $term = "%" . basename($pkg) . "%"; -$packages = $dbh->getAll($sql, array($term), DB_FETCHMODE_ASSOC); +$packages = $dbh->getAll($sql, array(SITE, $term), DB_FETCHMODE_ASSOC); if (count($packages) === 1) { localRedirect($pinfo_url . $packages[0]['name'] . '/redirected');

« previous php.pear.core (#7503) next »