cvs: pearweb /public_html/error 404.php

[email protected] ("Helgi ?ormar ?orbj?rnsson")
Newsgroups php.pear.cvs,php.pear.core
Message-ID <cvsdufuz1209785227@cvsserver>
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');
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.