mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG FIX: Make sure the translation function doesn't try to include missing locale files over and over again.
This commit is contained in:
parent
4ec208c93e
commit
ac8a05f188
@ -1833,8 +1833,11 @@ class i18n extends Object implements TemplateGlobalProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally, load any translations from registered plugins
|
// Load any translations from registered plugins
|
||||||
if ($load_plugins) self::plugins_load($locale);
|
if ($load_plugins) self::plugins_load($locale);
|
||||||
|
|
||||||
|
// Make sure this is only done once. We don't want to attempt it hundreds of times for missing locals
|
||||||
|
if(!isset($lang[$locale])) $lang[$locale] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user