BUG FIX: Make sure the translation function doesn't try to include missing locale files over and over again.

This commit is contained in:
Simon Elvery 2012-03-21 12:47:22 +10:00
parent 4ec208c93e
commit ac8a05f188

View File

@ -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();
} }
/** /**