mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-17 05:00:54 +08:00
format fixed, substr changed to mb_substr, database-related settings added
This commit is contained in:
@@ -182,7 +182,7 @@ class MessageController extends Controller
|
||||
|
||||
if (!$removeUnused) {
|
||||
foreach ($obsoleted as $pk => $m) {
|
||||
if (substr($m, 0, 2) === '@@' && substr($m, -2) === '@@') {
|
||||
if (mb_substr($m, 0, 2) === '@@' && mb_substr($m, -2) === '@@') {
|
||||
unset($obsoleted[$pk]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user