diff options
author | Robin Appelman <robin@icewind.nl> | 2017-09-19 17:08:30 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-09-20 14:19:15 +0200 |
commit | 5430d73a0ed0291af237461cbec7850fedd95972 (patch) | |
tree | 99317e252211959f543deac6cba02ac1c122418a /lib/private/Template/ResourceLocator.php | |
parent | 1995c699284a1dc522ccb5d7035fd1dca277b10e (diff) | |
download | nextcloud-server-5430d73a0ed0291af237461cbec7850fedd95972.tar.gz nextcloud-server-5430d73a0ed0291af237461cbec7850fedd95972.zip |
Fix "webroot not found" when installed to the root of the webserver
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Template/ResourceLocator.php')
-rwxr-xr-x | lib/private/Template/ResourceLocator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Template/ResourceLocator.php b/lib/private/Template/ResourceLocator.php index 2127161f28c..eb6b1d3c594 100755 --- a/lib/private/Template/ResourceLocator.php +++ b/lib/private/Template/ResourceLocator.php @@ -139,7 +139,7 @@ abstract class ResourceLocator { $tmpRoot = dirname($tmpRoot); } - if (!$webRoot) { + if ($webRoot === null) { $realpath = realpath($root); if ($realpath && ($realpath !== $root)) { @@ -168,10 +168,10 @@ abstract class ResourceLocator { return; } - if (!$webRoot) { + if ($webRoot === null) { $webRoot = $this->findWebRoot($root); - if (!$webRoot) { + if ($webRoot === null) { $webRoot = ''; $this->logger->error('ResourceLocator can not find a web root (root: {root}, file: {file}, webRoot: {webRoot}, throw: {throw})', [ 'app' => 'lib', |