fix a small PHP fail
This commit is contained in:
parent
eca2e073f8
commit
5ff72f2cd7
|
@ -115,7 +115,7 @@ class OC_L10N{
|
||||||
// (Just no need to define date/time format etc. twice)
|
// (Just no need to define date/time format etc. twice)
|
||||||
if(file_exists($i18ndir.$lang.'.php')){
|
if(file_exists($i18ndir.$lang.'.php')){
|
||||||
// Include the file, save the data from $CONFIG
|
// Include the file, save the data from $CONFIG
|
||||||
include($i18ndir.$lang.'.php');
|
include(strip_tags($i18ndir).strip_tags($lang).'.php');
|
||||||
if(isset($TRANSLATIONS) && is_array($TRANSLATIONS)){
|
if(isset($TRANSLATIONS) && is_array($TRANSLATIONS)){
|
||||||
$this->translations = $TRANSLATIONS;
|
$this->translations = $TRANSLATIONS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue