fix wrong method name

This commit is contained in:
Stepan Tanasiychuk 2011-04-27 23:15:27 +03:00
parent 25ae70eb75
commit 411997dc59

View File

@ -164,7 +164,7 @@ class UploadedFile extends File
public function move($directory, $name = null) public function move($directory, $name = null)
{ {
if ($this->moved) { if ($this->moved) {
return parent::doMove($directory, $name); return parent::move($directory, $name);
} }
$newPath = $directory.DIRECTORY_SEPARATOR.(null === $name ? $this->getName() : $name); $newPath = $directory.DIRECTORY_SEPARATOR.(null === $name ? $this->getName() : $name);