Browse Source

Fix typos

A couple of obvious typos here
tags/2.0.0-beta
Rasmus Lerdorf 12 years ago
parent
commit
3c83b8ed7c
  1. 6
      framework/validators/FileValidator.php

6
framework/validators/FileValidator.php

@ -192,11 +192,11 @@ class FileValidator extends Validator
break;
case UPLOAD_ERR_CANT_WRITE:
$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;
case UPLOAD_ERR_EXTENSION:
$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;
default:
break;
@ -248,4 +248,4 @@ class FileValidator extends Validator
return (int)$sizeStr;
}
}
}
}

Loading…
Cancel
Save