fix PHP Warning: Use of undefined constant EGW_APP_INC

This commit is contained in:
Ralf Becker 2018-10-08 12:47:50 +02:00
parent ac9496343f
commit d895be2015

View File

@ -276,6 +276,8 @@ class Egw extends Egw\Base
} }
} }
if (defined('EGW_APP_INC'))
{
// Load the (depricated) app include files if they exists // Load the (depricated) app include files if they exists
if (EGW_APP_INC != "" && ! preg_match ('/phpgwapi/i', 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'])) file_exists(EGW_APP_INC . '/functions.inc.php') && !isset($_GET['menuaction']))
@ -288,6 +290,7 @@ class Egw extends Egw\Base
include(EGW_APP_INC . '/header.inc.php'); include(EGW_APP_INC . '/header.inc.php');
} }
} }
}
/** /**
* Verfiy there is a valid session * Verfiy there is a valid session