summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/Base.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-10-01 14:45:40 +0200
committerGitHub <noreply@github.com>2021-10-01 14:45:40 +0200
commitfb2fd3457650464230e052a91f573ba052950fef (patch)
treef095b5aa6e0a940c9ad17bd66dbc483777698775 /lib/private/Template/Base.php
parent4737708807203c091825bc3f65f7004abe505104 (diff)
parent18cc6c11b51b94ef0e2be55a0cf11de920b87870 (diff)
downloadnextcloud-server-fb2fd3457650464230e052a91f573ba052950fef.tar.gz
nextcloud-server-fb2fd3457650464230e052a91f573ba052950fef.zip
Merge pull request #28263 from Hinyka/bugfix/27759
Fix Lots of Error: file_exists(): open_basedir restriction in effect.…
Diffstat (limited to 'lib/private/Template/Base.php')
-rw-r--r--lib/private/Template/Base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/Base.php b/lib/private/Template/Base.php
index 2087f5f8ed9..2de8c7ad5b1 100644
--- a/lib/private/Template/Base.php
+++ b/lib/private/Template/Base.php
@@ -65,7 +65,7 @@ class Base {
*/
protected function getAppTemplateDirs($theme, $app, $serverRoot, $app_dir) {
// Check if the app is in the app folder or in the root
- if (file_exists($app_dir.'/templates/')) {
+ if ($app_dir !== false && file_exists($app_dir.'/templates/')) {
return [
$serverRoot.'/themes/'.$theme.'/apps/'.$app.'/templates/',
$app_dir.'/templates/',