From d1d1106179b2d647b3da7faae1ecfd4ab3139cad Mon Sep 17 00:00:00 2001 From: Vovan-VE Date: Fri, 4 Dec 2015 11:43:06 +0800 Subject: [PATCH] MessageController output DB lost EOL when unused messages unchanged When storing messages to DB and neither `removeUnused`, nor `markUnused` is enabled, then output about obsoleted messages won't say anything about update results and lost EOL: [/path] $ ./yii message/extract ... Extracting messages from ... Extracting messages from ... Inserting new messages...saved. Updating obsoleted messages...[/path] $ _ Patched to explain what happened and fix EOL: Inserting new messages...saved. Updating obsoleted messages...kept untouched. [/path] $ _ --- framework/console/controllers/MessageController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/console/controllers/MessageController.php b/framework/console/controllers/MessageController.php index d79d18127f..10b4ebf89c 100644 --- a/framework/console/controllers/MessageController.php +++ b/framework/console/controllers/MessageController.php @@ -407,6 +407,8 @@ EOD; ['in', 'id', $obsolete] )->execute(); $this->stdout("updated.\n"); + } else { + $this->stdout("kept untouched.\n"); } } }