From: Vincent Blavet Date: Thu, 24 Jan 2002 08:22:46 +0000 (+0000) Subject: * Adding the ability to set the PEAR_INSTALL_DIR while creating the Registry object... X-Git-Tag: PRE_ISSET_PATCH~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1696a2c4e2a254eea5850fb8d832baacd1466bc5;p=php * Adding the ability to set the PEAR_INSTALL_DIR while creating the Registry object (in the same way as Installer.php) --- diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index f76573668b..51b128d178 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -34,9 +34,9 @@ class PEAR_Registry // {{{ PEAR_Registry - function PEAR_Registry() + function PEAR_Registry($pear_install_dir = PEAR_INSTALL_DIR) { - $this->statedir = PEAR_INSTALL_DIR . "/.registry"; + $this->statedir = $pear_install_dir . "/.registry"; } // }}}