Skip to content

Commit

Permalink
Merge pull request #9 from upsilon/ticket2236
Browse files Browse the repository at this point in the history
  • Loading branch information
kawahara committed Jul 14, 2011
2 parents 4d3a0bd + 68457b7 commit 47bbe0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/model/doctrine/PluginAlbumImage.class.php
Expand Up @@ -25,6 +25,11 @@ public function preSave($event)
{
// album_image.member_id is must be same member
$this->setMember($this->getAlbum()->getMember());

if (null === $this->filesize && null !== $this->file_id)
{
$this->filesize = strlen($this->File->FileBin->bin);
}
}

protected function setFileNamePrefix()
Expand Down

0 comments on commit 47bbe0b

Please sign in to comment.