Commit d3734c6d authored by Paul Ilea's avatar Paul Ilea

[BUGFIX] Fix adding constant override for new language

parent 0bb56aa3
......@@ -199,6 +199,9 @@ abstract class FileService extends AbstractService {
*/
public function setLocalLangData($constant, $value, $langKey, $forceDel = FALSE) {
if (!empty($value) || (($langKey === 'default' && !$forceDel))) {
if($this->localLang[$langKey] === '') {
$this->localLang[$langKey] = [];
}
$this->localLang[$langKey][$constant] = $value;
} elseif (isset($this->localLang[$langKey][$constant])) {
if ($this->session->getDataByKey('editingMode') === 'override' &&
......
Markdown is supported
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