Skip to content

Commit

Permalink
Fix the methods signature and passing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Moacir committed Jul 24, 2014
1 parent 45bf5a9 commit 1ce72a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Model/Behavior/UploadBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,11 @@ public function createThumbs(Model $model, $type, $file) {
*
* @return void
*/
public function createThumb($file, $name, $width, $height, $crop = false) {
$imagine = $this->getImagine();
public function createThumb(Model $model, $file, $name, $width, $height, $crop = false) {
$imagine = $this->getImagine($model);
$image = $imagine->open($file);

$this->__generateThumb(
$this->_generateThumb(
array(
'w' => $width,
'h' => $height,
Expand Down Expand Up @@ -696,7 +696,7 @@ protected function _generateThumb($thumb, $image, $crop = false) {
$mode = Imagine\Image\ImageInterface::THUMBNAIL_INSET;
}

$thumbnail = $image->thumbnail(
$thumbnail = $image->thumbnail(
new Imagine\Image\Box(
$thumb['w'],
$thumb['h']
Expand Down

0 comments on commit 1ce72a0

Please sign in to comment.