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:
Andrey Smirnov
2014-05-26 15:33:37 +04:00
parent e503a3649d
commit 1aeb306d00

View File

@ -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;
}