mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-18 05:32:29 +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) {
|
if (!$removeUnused) {
|
||||||
foreach ($obsoleted as $pk => $m) {
|
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]);
|
unset($obsoleted[$pk]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user