From 29d69f7d9b6412fb9cded5490d6965c709cbace8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 4 Feb 2023 11:08:49 +0100 Subject: Fix buildConfig break when contentFolderPath is reached So a form with the same name as the content directory can exist --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/App.php') diff --git a/src/App.php b/src/App.php index ea9aa29..350247f 100644 --- a/src/App.php +++ b/src/App.php @@ -148,7 +148,7 @@ class App include_once $functionsFile; } - if (str_ends_with($currentDirectory, '/' . basename($_ENV['app']['contentFolderPath'])) || $currentDirectory == '/') { + if ($currentDirectory == $_ENV['app']['contentFolderPath'] || $currentDirectory == '/') { break; } -- cgit v1.2.3