Skip to content
Browse files

Merge branch 'gettextMessageSourceCachingFix' of git://github.com/ode…

…vyatkov/yii into odevyatkov-gettextMessageSourceCachingFix
  • Loading branch information...
2 parents c269a68 + af55448 commit bf9ce39247fa2bb45b9d335ba994192b3c09b0ee @samdark samdark committed Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/i18n/CGettextMessageSource.php
View
2 framework/i18n/CGettextMessageSource.php
@@ -91,7 +91,7 @@ protected function loadMessages($category, $language)
if ($this->cachingDuration > 0 && $this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null)
{
- $key = self::CACHE_KEY_PREFIX . $messageFile;
+ $key = self::CACHE_KEY_PREFIX . $messageFile . "." . $category;
if (($data=$cache->get($key)) !== false)
return unserialize($data);
}

0 comments on commit bf9ce39

Please sign in to comment.
Something went wrong with that request. Please try again.