mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
additional safety checks
This commit is contained in:
parent
7611d218df
commit
eef1cf529e
@ -132,7 +132,9 @@ class OC_L10N{
|
||||
$transFile = OC::$SERVERROOT.'/themes/'.$theme.substr($transFile, strlen(OC::$SERVERROOT));
|
||||
if (file_exists($transFile)) {
|
||||
include $transFile;
|
||||
$this->translations = array_merge($this->translations, $TRANSLATIONS);
|
||||
if (isset($TRANSLATIONS) && is_array($TRANSLATIONS)) {
|
||||
$this->translations = array_merge($this->translations, $TRANSLATIONS);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user