Commit fd4cea46 authored by Marc Egger's avatar Marc Egger
Browse files

Path.php: default qfqProject to fileadmin/protected if typo3 used

parent 6412aa1e
Pipeline #4248 passed with stages
in 4 minutes and 31 seconds
......@@ -53,8 +53,8 @@ class Path
// QFQ Project dir
private static $appToProject = null;
private const APP_TO_PROJECT_DEFAULT = '../';
private const APP_TO_FILEADMIN = 'fileadmin';
private const APP_TO_PROJECT_IN_PROTECTED = 'fileadmin/protected/qfqProject';
private const APP_TO_PROTECTED = 'fileadmin/protected';
const PROJECT_TO_FORM = 'form';
const FORM_TO_FORM_BACKUP = '_backup';
const PROJECT_DIR_TO_REPORT = 'report';
......@@ -442,8 +442,8 @@ class Path
Config::migrateConfigPhpToJson();
self::writeProjectPathPhp();
// does fileadmin/protected exist? => fileadmin/protected/qfqProject
} elseif (file_exists(self::cwdToApp(self::APP_TO_PROTECTED))) {
// does fileadmin exist? => fileadmin/protected/qfqProject
} elseif (file_exists(self::cwdToApp(self::APP_TO_FILEADMIN))) {
HelperFile::createPathRecursive(self::cwdToApp(self::APP_TO_PROJECT_IN_PROTECTED));
self::setAppToProject(self::APP_TO_PROJECT_IN_PROTECTED);
self::writeProjectPathPhp();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment