"Grrr: MyDMS mixes egw_info and phpgw_info"

This commit is contained in:
Ralf Becker 2008-10-07 15:40:24 +00:00
parent d1af997d8a
commit e2a0af67cc

View File

@ -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;
}