Clean up of old _LANG config variables

This commit is contained in:
Clemens Schwaighofer
2022-04-15 13:52:58 +09:00
parent fed67e990d
commit 667dc4de8e
4 changed files with 54 additions and 15 deletions

View File

@@ -53,9 +53,13 @@ if (!defined('DIR')) {
// find trigger name "admin/" or "frontend/" in the getcwd() folder
foreach (['admin', 'frontend'] as $folder) {
if (strstr(getcwd() ?: '', DIRECTORY_SEPARATOR . $folder)) {
define('CONTENT_PATH', $folder . DIRECTORY_SEPARATOR);
break;
}
}
// if content path is empty, fallback is default
if (empty($folder)) {
$folder = 'default';
}
define('CONTENT_PATH', $folder . DIRECTORY_SEPARATOR);
// __END__