Skip to content
Snippets Groups Projects
Commit eef1cf52 authored by Andreas Ergenzinger's avatar Andreas Ergenzinger
Browse files

additional safety checks

parent 7611d218
No related branches found
No related tags found
No related merge requests found
...@@ -132,11 +132,13 @@ class OC_L10N{ ...@@ -132,11 +132,13 @@ class OC_L10N{
$transFile = OC::$SERVERROOT.'/themes/'.$theme.substr($transFile, strlen(OC::$SERVERROOT)); $transFile = OC::$SERVERROOT.'/themes/'.$theme.substr($transFile, strlen(OC::$SERVERROOT));
if (file_exists($transFile)) { if (file_exists($transFile)) {
include $transFile; include $transFile;
if (isset($TRANSLATIONS) && is_array($TRANSLATIONS)) {
$this->translations = array_merge($this->translations, $TRANSLATIONS); $this->translations = array_merge($this->translations, $TRANSLATIONS);
} }
} }
} }
} }
}
if(file_exists(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php')) { if(file_exists(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php')) {
// Include the file, save the data from $CONFIG // Include the file, save the data from $CONFIG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment