cvs: pear /PEAR_PackageUpdate PackageUpdate.php
| From: | Laurent Laville | Date: | Tue, 13 Feb 2007 10:33:53 +0000 |
| Subject: | cvs: pear /PEAR_PackageUpdate PackageUpdate.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44656@lists.php.net to get a copy of this message | ||
farell Tue Feb 13 10:33:53 2007 UTC
Modified files:
/pear/PEAR_PackageUpdate PackageUpdate.php
Log:
bug fix #10080 : PEAR_Config::singleton() should be able to be used in update()
http://cvs.php.net/viewvc.cgi/pear/PEAR_PackageUpdate/PackageUpdate.php?r1=1.10&r2=1.11&diff_format=u
Index: pear/PEAR_PackageUpdate/PackageUpdate.php
diff -u pear/PEAR_PackageUpdate/PackageUpdate.php:1.10
pear/PEAR_PackageUpdate/PackageUpdate.php:1.11
--- pear/PEAR_PackageUpdate/PackageUpdate.php:1.10 Wed Jan 10 15:40:46 2007
+++ pear/PEAR_PackageUpdate/PackageUpdate.php Tue Feb 13 10:33:53 2007
@@ -16,7 +16,7 @@
* @author Scott Mattocks
* @copyright 2006-2007 Scott Mattocks
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: PackageUpdate.php,v 1.10 2007/01/10 15:40:46 farell Exp $
+ * @version CVS: $Id: PackageUpdate.php,v 1.11 2007/02/13 10:33:53 farell Exp $
* @link http://pear.php.net/package/PEAR_PackageUpdate
* @since File available since Release 0.4.0a1
*/
@@ -501,7 +501,7 @@
}
// Create a config object.
- $config = new PEAR_Config();
+ $config =& PEAR_Config::singleton();
// Get the config's registry object.
$reg = $config->getRegistry();
@@ -973,7 +973,7 @@
function update()
{
// Create a config object.
- $config = new PEAR_Config();
+ $config =& PEAR_Config::singleton();
// Change the verbosity but keep track of the value to reset it just in
// case this does something permanent.