From fc47bf9e1ddf616df02fe747581b9d1c7f9786e0 Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 27 Aug 2013 04:04:39 +0530 Subject: [PATCH] Avoid reparsing locale definition file. --- lib/Cake/I18n/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/I18n/I18n.php b/lib/Cake/I18n/I18n.php index a522bdaa8..d3da164b7 100644 --- a/lib/Cake/I18n/I18n.php +++ b/lib/Cake/I18n/I18n.php @@ -326,7 +326,7 @@ class I18n { if (is_file($localeDef)) { $definitions = self::loadLocaleDefinition($localeDef); if ($definitions !== false) { - $this->_domains[$domain][$this->_lang][$this->category] = self::loadLocaleDefinition($localeDef); + $this->_domains[$domain][$this->_lang][$this->category] = $definitions; $this->_noLocale = false; return $domain; }