Commit 1aeb306d by Andrey Smirnov

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.
parent e503a364
...@@ -173,7 +173,7 @@ class MessageController extends Controller ...@@ -173,7 +173,7 @@ class MessageController extends Controller
if (isset($current[$category])) { if (isset($current[$category])) {
$new[$category] = array_diff($msgs, $current[$category]); $new[$category] = array_diff($msgs, $current[$category]);
$obsolete = array_diff($current[$category], $msgs); $obsolete += array_diff($current[$category], $msgs);
} else { } else {
$new[$category] = $msgs; $new[$category] = $msgs;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment