diff options
author | Karel Hink <info@karelhink.cz> | 2021-07-30 19:28:52 +0000 |
---|---|---|
committer | Karel Hink <info@karelhink.cz> | 2021-07-30 19:28:52 +0000 |
commit | 18cc6c11b51b94ef0e2be55a0cf11de920b87870 (patch) | |
tree | 47cd6e9e85560720b3c0184024b43962156f50a5 /lib/private/Route | |
parent | 7170c03f0e11a2f7385d909cd0b98f90e0ce984c (diff) | |
download | nextcloud-server-18cc6c11b51b94ef0e2be55a0cf11de920b87870.tar.gz nextcloud-server-18cc6c11b51b94ef0e2be55a0cf11de920b87870.zip |
Fix Lots of Error: file_exists(): open_basedir restriction in effect. in Log
Signed-off-by: Karel Hink <info@karelhink.cz>
Diffstat (limited to 'lib/private/Route')
-rw-r--r-- | lib/private/Route/Router.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index 0bccb8190cd..fcde8f08897 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -130,8 +130,9 @@ class Router implements IRouter { if (isset($this->loadedApps[$app])) { return; } - $file = \OC_App::getAppPath($app) . '/appinfo/routes.php'; - if ($file !== false && file_exists($file)) { + $appPath = \OC_App::getAppPath($app); + $file = $appPath . '/appinfo/routes.php'; + if ($appPath !== false && file_exists($file)) { $routingFiles = [$app => $file]; } else { $routingFiles = []; |