forked from extern/egroupware
"Grrr: MyDMS mixes egw_info and phpgw_info"
This commit is contained in:
parent
d1af997d8a
commit
e2a0af67cc
@ -13,9 +13,16 @@
|
||||
*/
|
||||
|
||||
// allow to migrate from phpgw_info to egw_info
|
||||
if (!isset($GLOBALS['egw_info']))
|
||||
if (!isset($GLOBALS['egw_info']) || in_array($GLOBALS['egw_info']['flags']['currentapp'],array('jinn','mydms','tts')))
|
||||
{
|
||||
$GLOBALS['egw_info'] =& $GLOBALS['phpgw_info'];
|
||||
if (!isset($GLOBALS['egw_info']))
|
||||
{
|
||||
$GLOBALS['egw_info'] =& $GLOBALS['phpgw_info'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];
|
||||
}
|
||||
$GLOBALS['egw_info']['flags']['phpgw_compatibility'] = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user