fix "PHP Notice: Use of undefined constant EGW_SERVER_ROOT", caused eg. by calendar/gradient.php

This commit is contained in:
Ralf Becker 2015-02-03 13:18:03 +00:00
parent c965a6fd52
commit 2fcacd8f5c

View File

@ -14,6 +14,14 @@
* @version $Id$ * @version $Id$
*/ */
// this is only neccessary, if header.inc.php is not included, but common_functions.inc.php directly
if (!defined('EGW_SERVER_ROOT'))
{
define('EGW_SERVER_ROOT', dirname(dirname(__DIR__)));
define('EGW_INCLUDE_ROOT', EGW_SERVER_ROOT);
define('EGW_API_INC', __DIR__);
}
/** /**
* applies stripslashes recursivly on each element of an array * applies stripslashes recursivly on each element of an array
* *