add error suppression to iswin check to avoid notices when DOKU_UNITTEST_ASSUME_WINDOWS isn't set
darcs-hash:20090122081649-f07c6-e7744b1496e1a05ab089812fd7ca3716ecec2290.gz
This commit is contained in:
parent
e6266454ce
commit
f0a201c570
|
@ -510,7 +510,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' || @$GLOBALS['DOKU_UNITTEST_ASSUME_WINDOWS']);
|
||||
|
||||
// find the (indestructable) root of the path - keeps windows stuff intact
|
||||
if($path{0} == '/'){
|
||||
|
|
Loading…
Reference in New Issue