From 1696a2c4e2a254eea5850fb8d832baacd1466bc5 Mon Sep 17 00:00:00 2001 From: Vincent Blavet Date: Thu, 24 Jan 2002 08:22:46 +0000 Subject: [PATCH] * Adding the ability to set the PEAR_INSTALL_DIR while creating the Registry object (in the same way as Installer.php) --- pear/PEAR/Registry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index f76573668b5..51b128d1786 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"; } // }}}