Skip to content
Snippets Groups Projects
Verified Commit fe22b117 authored by Damien's avatar Damien
Browse files

FEAT #7713 Custom lang-{lang}.php

parent 9e2b48cb
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -14,9 +14,8 @@
require '../vendor/autoload.php';
if (strpos(getcwd(), '/rest')) {
chdir('..');
}
//Root application position
chdir('..');
$userId = null;
if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) {
......@@ -37,6 +36,12 @@ if (empty($userId)) {
}
$language = \SrcCore\models\CoreConfigModel::getLanguage();
$customId = \SrcCore\models\CoreConfigModel::getCustomId();
if (file_exists("custom/{$customId}/src/core/lang/lang-{$language}.php")) {
require_once("custom/{$customId}/src/core/lang/lang-{$language}.php");
}
require_once("src/core/lang/lang-{$language}.php");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment