mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 20:09:27 +01:00
"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:
parent
07c2be0891
commit
be4c3f44d1
@ -252,6 +252,8 @@
|
|||||||
$channel = $config->get('default_channel');
|
$channel = $config->get('default_channel');
|
||||||
//echo "<pre>channel = ".print_r($channel,true)."</pre>\n";
|
//echo "<pre>channel = ".print_r($channel,true)."</pre>\n";
|
||||||
|
|
||||||
|
if (!method_exists($config,'getRegistry')) return false; // PEAR version to old
|
||||||
|
|
||||||
$reg = &$config->getRegistry();
|
$reg = &$config->getRegistry();
|
||||||
//echo "<pre>reg = ".print_r($reg,true)."</pre>\n";
|
//echo "<pre>reg = ".print_r($reg,true)."</pre>\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user