Fix double encoding time strings (CakeTime)

Fix time strings being double encoded when mb_string is not installed.
This commit is contained in:
dmromanov 2015-01-09 00:03:49 +03:00
parent 2ee5c3d73d
commit eb414bdda1

View file

@ -1138,7 +1138,7 @@ class CakeTime {
if (function_exists('mb_check_encoding')) {
$valid = mb_check_encoding($format, $encoding);
} else {
$valid = !Multibyte::checkMultibyte($format);
$valid = Multibyte::checkMultibyte($format);
}
if (!$valid) {
$format = utf8_encode($format);