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:
Vovan-VE
2015-12-04 11:43:06 +08:00
parent 8f94a824fd
commit d1d1106179

View File

@ -407,6 +407,8 @@ EOD;
['in', 'id', $obsolete]
)->execute();
$this->stdout("updated.\n");
} else {
$this->stdout("kept untouched.\n");
}
}
}