cvs: pearweb /include pear-database.php
| From: | Martin Jansen | Date: | Wed, 15 Oct 2003 08:41:39 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13619@lists.php.net to get a copy of this message | ||
mj Wed Oct 15 04:41:39 2003 EDT
Modified files:
/pearweb/include pear-database.php
Log:
* Only list releases of approved packages.
# This becomes necessary because PECL packages, which don't use the
# approved flag, are also displayed.
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.145 pearweb/include/pear-database.php:1.146
--- pearweb/include/pear-database.php:1.145 Wed Oct 8 15:35:32 2003
+++ pearweb/include/pear-database.php Wed Oct 15 04:41:39 2003
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.145 2003/10/08 19:35:32 mj Exp $
+ $Id: pear-database.php,v 1.146 2003/10/15 08:41:39 mj Exp $
*/
require_once 'DB/storage.php';
@@ -1014,6 +1014,7 @@
"releases.state AS state ".
"FROM packages, releases ".
"WHERE packages.id = releases.package ".
+ "AND packages.approved = 1 ".
"ORDER BY releases.releasedate DESC", 0, $n);
$recent = array();
// XXX Fixme when DB gets limited getAll()