mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
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 <file>... Extracting messages from <file>... 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] $ _
This commit is contained in:
@ -407,6 +407,8 @@ EOD;
|
||||
['in', 'id', $obsolete]
|
||||
)->execute();
|
||||
$this->stdout("updated.\n");
|
||||
} else {
|
||||
$this->stdout("kept untouched.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user