forked from extern/egroupware
fix "PHP Notice: Use of undefined constant EGW_SERVER_ROOT", caused eg. by calendar/gradient.php
This commit is contained in:
parent
c965a6fd52
commit
2fcacd8f5c
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user