Skip to content

Commit

Permalink
FileEntity: Remove double calling of generatePath method.
Browse files Browse the repository at this point in the history
  • Loading branch information
pepakriz committed Jan 26, 2014
1 parent 3b04374 commit ebeb9c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CmsModule/Content/Entities/FileEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ public function preUpload()

}

$this->generatePath();

if ($this->_oldPath && $this->_oldPath !== $this->path) {
@unlink($this->getFilePathBy($this->_oldProtected, $this->_oldPath));
}
Expand All @@ -112,7 +110,7 @@ public function preUpload()
} else {
copy($this->file->getPathname(), $this->getFilePath());
}
return;
return $this->file = NULL;
}

if (
Expand Down

0 comments on commit ebeb9c1

Please sign in to comment.