diff options
-rw-r--r-- | inc/init.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php index 67cac8783..ba24d7ced 100644 --- a/inc/init.php +++ b/inc/init.php @@ -91,9 +91,10 @@ */ function init_path($path){ $p = realpath($path); - if($p) return $p; + if(is_dir($p)) return $p; $p = realpath(DOKU_INC.$path); - return $p; + if(is_dir($p)) return $p; + return ''; } /** |