Skip to content

Commit

Permalink
Fixes yiisoft#14487: Changed i18n message error to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dmirogin authored and samdark committed Jul 21, 2017
1 parent 92d2245 commit 21d2d72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Yii Framework 2 Change Log
- Bug #14423: Fixed `ArrayHelper::merge` behavior with null values for integer-keyed elements (dmirogin)
- Bug #14406: Fixed caching rules in `yii\web\UrlManager` with different ruleConfig configuration (dmirogin)
- Chg #7936: Deprecate `yii\base\Object` in favor of `yii\base\BaseObject` for compatibility with PHP 7.2 (rob006, cebe, klimov-paul)
- Chg #14487: Changed i18n message error to warning (dmirogin)


2.0.12 June 05, 2017
Expand Down
2 changes: 1 addition & 1 deletion framework/i18n/PhpMessageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function loadMessages($category, $language)
$messages = $this->loadFallbackMessages($category, $this->sourceLanguage, $messages, $messageFile);
} else {
if ($messages === null) {
Yii::error("The message file for category '$category' does not exist: $messageFile", __METHOD__);
Yii::warning("The message file for category '$category' does not exist: $messageFile", __METHOD__);
}
}

Expand Down

0 comments on commit 21d2d72

Please sign in to comment.