]> granicus.if.org Git - php/commitdiff
* Adding the ability to set the PEAR_INSTALL_DIR while creating the Registry object...
authorVincent Blavet <vblavet@php.net>
Thu, 24 Jan 2002 08:22:46 +0000 (08:22 +0000)
committerVincent Blavet <vblavet@php.net>
Thu, 24 Jan 2002 08:22:46 +0000 (08:22 +0000)
pear/PEAR/Registry.php

index f76573668b5d5dc9c38e9cc13934ad5707bc55ba..51b128d1786ea9011f89b0f4ec91680cdca170ae 100644 (file)
@@ -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";
     }
 
     // }}}