Merge pull request #7407 from MrPetovan/bug/notices
Fix undefined property notice in L10n\L10n
This commit is contained in:
commit
388ac062c4
|
@ -120,7 +120,7 @@ class L10n
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->langSave) {
|
if (empty($this->langSave)) {
|
||||||
$this->langSave = $this->lang;
|
$this->langSave = $this->lang;
|
||||||
$this->stringsSave = $this->strings;
|
$this->stringsSave = $this->strings;
|
||||||
}
|
}
|
||||||
|
@ -140,8 +140,8 @@ class L10n
|
||||||
$this->strings = $this->stringsSave;
|
$this->strings = $this->stringsSave;
|
||||||
$this->lang = $this->langSave;
|
$this->lang = $this->langSave;
|
||||||
|
|
||||||
unset($this->stringsSave);
|
$this->stringsSave = null;
|
||||||
unset($this->langSave);
|
$this->langSave = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user