"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."
This commit is contained in:
Ralf Becker 2007-04-26 06:17:41 +00:00
parent 07c2be0891
commit be4c3f44d1

View File

@ -252,6 +252,8 @@
$channel = $config->get('default_channel');
//echo "<pre>channel = ".print_r($channel,true)."</pre>\n";
if (!method_exists($config,'getRegistry')) return false; // PEAR version to old
$reg = &$config->getRegistry();
//echo "<pre>reg = ".print_r($reg,true)."</pre>\n";