correctly avoid notice in init.
This commit is contained in:
parent
2cceef48e0
commit
724970e65d
|
@ -551,7 +551,7 @@ EOT;
|
|||
function fullpath($path,$exists=false){
|
||||
static $run = 0;
|
||||
$root = '';
|
||||
$iswin = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' || @$GLOBALS['DOKU_UNITTEST_ASSUME_WINDOWS']);
|
||||
$iswin = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' || !empty($GLOBALS['DOKU_UNITTEST_ASSUME_WINDOWS']));
|
||||
|
||||
// find the (indestructable) root of the path - keeps windows stuff intact
|
||||
if($path{0} == '/'){
|
||||
|
|
Loading…
Reference in New Issue