forked from extern/egroupware
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('..');
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user