This commit is contained in:
Qiang Xue
2011-12-26 19:36:24 -05:00
parent 730dc3db9f
commit c63c78385e
20 changed files with 761 additions and 889 deletions

View File

@ -82,7 +82,7 @@ class StringValidator extends Validator
}
if (function_exists('mb_strlen') && $this->encoding !== false) {
$length = mb_strlen($value, $this->encoding ? $this->encoding : Yii::app()->charset);
$length = mb_strlen($value, $this->encoding ? $this->encoding : \Yii::$application->charset);
} else {
$length = strlen($value);
}