mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
PHP5 fixes
This commit is contained in:
parent
40f5256cee
commit
8d704fe5c0
@ -39,7 +39,8 @@
|
||||
// variable uses forward slashes. If it does not, you'll have to tweak
|
||||
// this.
|
||||
if (isset($_SERVER['PHP_SELF'])) {
|
||||
$webroot = strstr(dirname(__FILE__), '/' . array_shift(preg_split(';/;', $_SERVER['PHP_SELF'], 2, PREG_SPLIT_NO_EMPTY)));
|
||||
$parts = preg_split(';/;', $_SERVER['PHP_SELF'], 2, PREG_SPLIT_NO_EMPTY);
|
||||
$webroot = strstr(dirname(__FILE__), '/' . array_shift($parts));
|
||||
if ($webroot !== false) {
|
||||
$webroot = preg_replace(';/config$;', '', $webroot);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user