From be4c3f44d163a43a397caccb8cedc20d9dc5c907 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Apr 2007 06:17:41 +0000 Subject: [PATCH] "fixed check_install to deal with old PEAR versions, where the PEAR_Config object does not have a getRegistry method. Falling back to the old check which does not give the version number, is better then a fatal error." --- setup/check_install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/check_install.php b/setup/check_install.php index c1811fa64d..7352d209df 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -252,6 +252,8 @@ $channel = $config->get('default_channel'); //echo "
channel = ".print_r($channel,true)."
\n"; + if (!method_exists($config,'getRegistry')) return false; // PEAR version to old + $reg = &$config->getRegistry(); //echo "
reg = ".print_r($reg,true)."
\n";