mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 07:21:04 +01:00
fixed wrong Windows detection and changed default path to show slashes on windows too
This commit is contained in:
parent
0abd65ff50
commit
0f3a8137e6
@ -50,9 +50,9 @@
|
|||||||
$realpath = realpath('..');
|
$realpath = realpath('..');
|
||||||
if(!ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath))
|
if(!ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath))
|
||||||
{
|
{
|
||||||
if(PHP_OS == 'Windows')
|
if(strtoupper(substr(PHP_OS, 0,3)) == 'WIN')
|
||||||
{
|
{
|
||||||
$realpath = 'Drive:\\\\Path';
|
$realpath = 'Drive:/Path/to/egroupware';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user