From 960cb499bdbb8e7b642e6f8d1838e4a436bd6c2e Mon Sep 17 00:00:00 2001 From: Gudz Taras Date: Tue, 5 Nov 2013 04:53:45 +0400 Subject: [PATCH] Fixed typos [skip ci] --- framework/yii/validators/FileValidator.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/yii/validators/FileValidator.php b/framework/yii/validators/FileValidator.php index f27c010..179a897 100644 --- a/framework/yii/validators/FileValidator.php +++ b/framework/yii/validators/FileValidator.php @@ -26,6 +26,7 @@ class FileValidator extends Validator * separated by space or comma (e.g. "gif, jpg"). * Extension names are case-insensitive. Defaults to null, meaning all file name * extensions are allowed. + * @see wrongType */ public $types; /** @@ -46,6 +47,7 @@ class FileValidator extends Validator * @var integer the maximum file count the given attribute can hold. * It defaults to 1, meaning single file upload. By defining a higher number, * multiple uploads become possible. + * @see tooMany */ public $maxFiles = 1; /** @@ -76,9 +78,10 @@ class FileValidator extends Validator public $tooSmall; /** * @var string the error message used when the uploaded file has an extension name - * that is not listed in [[extensions]]. You may use the following tokens in the message: + * that is not listed in [[types]]. You may use the following tokens in the message: * * - {attribute}: the attribute name + * - {file}: the uploaded file name * - {extensions}: the list of the allowed extensions. */ public $wrongType; @@ -87,7 +90,6 @@ class FileValidator extends Validator * You may use the following tokens in the message: * * - {attribute}: the attribute name - * - {file}: the uploaded file name * - {limit}: the value of [[maxFiles]] */ public $tooMany;