cvs: pearweb /include pear-database.php
| From: | Daniel Convissor | Date: | Fri, 11 Jun 2004 05:34:58 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20509@lists.php.net to get a copy of this message | ||
danielc Fri Jun 11 01:34:58 2004 EDT
Modified files:
/pearweb/include pear-database.php
Log:
One of the raiseError()'s in HTTPdownload() mistakenly used $this-> instead of PEAR::.
May fix Bug #1606.
http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.198&r2=1.199&ty=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.198 pearweb/include/pear-database.php:1.199
--- pearweb/include/pear-database.php:1.198 Thu Jun 10 19:43:41 2004
+++ pearweb/include/pear-database.php Fri Jun 11 01:34:58 2004
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.198 2004/06/10 23:43:41 danielc Exp $
+ $Id: pear-database.php,v 1.199 2004/06/11 05:34:58 danielc Exp $
*/
require_once 'DB/storage.php';
@@ -1505,6 +1505,7 @@
* @param string Filename
* @param boolean Uncompress file before downloading?
* @return mixed
+ * @static
*/
function HTTPdownload($package, $version = null, $file = null, $uncompress = false)
{
@@ -1529,7 +1530,7 @@
if (PEAR::isError($row)) {
return $row;
} elseif ($row === null) {
- return $this->raiseError("File '$file' not found");
+ return PEAR::raiseError("File '$file' not found");
}
$path = $row['fullpath'];
$log_release = $row['release'];