- performance improvement on isLocale() git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22176 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -807,7 +807,7 @@ class Zend_Locale
*/
public static function isLocale($locale, $strict = false, $compatible = true)
{
- if ($locale instanceof Zend_Locale) {
+ if (($locale instanceof Zend_Locale) || (array_key_exists($locale, self::$_localeData))) {
return true;
}