mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
fix PHP Warning: Use of undefined constant EGW_APP_INC
This commit is contained in:
parent
ac9496343f
commit
d895be2015
@ -276,16 +276,19 @@ class Egw extends Egw\Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the (depricated) app include files if they exists
|
if (defined('EGW_APP_INC'))
|
||||||
if (EGW_APP_INC != "" && ! preg_match ('/phpgwapi/i', EGW_APP_INC) &&
|
|
||||||
file_exists(EGW_APP_INC . '/functions.inc.php') && !isset($_GET['menuaction']))
|
|
||||||
{
|
{
|
||||||
include(EGW_APP_INC . '/functions.inc.php');
|
// Load the (depricated) app include files if they exists
|
||||||
}
|
if (EGW_APP_INC != "" && ! preg_match ('/phpgwapi/i', EGW_APP_INC) &&
|
||||||
if (!@$GLOBALS['egw_info']['flags']['noheader'] && !@$GLOBALS['egw_info']['flags']['noappheader'] &&
|
file_exists(EGW_APP_INC . '/functions.inc.php') && !isset($_GET['menuaction']))
|
||||||
file_exists(EGW_APP_INC . '/header.inc.php') && !isset($_GET['menuaction']))
|
{
|
||||||
{
|
include(EGW_APP_INC . '/functions.inc.php');
|
||||||
include(EGW_APP_INC . '/header.inc.php');
|
}
|
||||||
|
if (!@$GLOBALS['egw_info']['flags']['noheader'] && !@$GLOBALS['egw_info']['flags']['noappheader'] &&
|
||||||
|
file_exists(EGW_APP_INC . '/header.inc.php') && !isset($_GET['menuaction']))
|
||||||
|
{
|
||||||
|
include(EGW_APP_INC . '/header.inc.php');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user