mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
Fix incomplete obsolete filling in i18n db extractor
Obsolete keys searching isn't work when we have serveral categories for tranlation with DbMessageSource. Obsolete array filled with last message category only, because it'll always overwritten.
This commit is contained in:
@ -173,7 +173,7 @@ class MessageController extends Controller
|
||||
|
||||
if (isset($current[$category])) {
|
||||
$new[$category] = array_diff($msgs, $current[$category]);
|
||||
$obsolete = array_diff($current[$category], $msgs);
|
||||
$obsolete += array_diff($current[$category], $msgs);
|
||||
} else {
|
||||
$new[$category] = $msgs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user