Fix typos

A couple of obvious typos here
This commit is contained in:
Rasmus Lerdorf
2013-05-05 07:31:09 -07:00
parent aac49ad9c1
commit 3c83b8ed7c

View File

@@ -192,11 +192,11 @@ class FileValidator extends Validator
break; break;
case UPLOAD_ERR_CANT_WRITE: case UPLOAD_ERR_CANT_WRITE:
$this->addError($object, $attribute, $this->message); $this->addError($object, $attribute, $this->message);
Yii::warning('Failed to write the uploaded file to disk: ', $file->getName(), __METHOD__); Yii::warning('Failed to write the uploaded file to disk: ' . $file->getName(), __METHOD__);
break; break;
case UPLOAD_ERR_EXTENSION: case UPLOAD_ERR_EXTENSION:
$this->addError($object, $attribute, $this->message); $this->addError($object, $attribute, $this->message);
Yii::warning('File upload was stopped by some PHP extension: ', $file->getName(), __METHOD__); Yii::warning('File upload was stopped by some PHP extension: ' . $file->getName(), __METHOD__);
break; break;
default: default:
break; break;
@@ -248,4 +248,4 @@ class FileValidator extends Validator
return (int)$sizeStr; return (int)$sizeStr;
} }
} }
} }