Commit 2530555b by Qiang Xue

Merge pull request #116 from rlerdorf/patch-1

Fix typos
parents aac49ad9 3c83b8ed
...@@ -192,11 +192,11 @@ class FileValidator extends Validator ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment