]> git.mxchange.org Git - friendica.git/commitdiff
Photo::scaleImageSquare was giving an inexistent variable to scaleImage.
authorDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 12:22:47 +0000 (14:22 +0200)
committerDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 12:22:47 +0000 (14:22 +0200)
include/Photo.php

index de29dfb67241a5fbacbe6056bc9e4fc0edb3c05f..1a659496638c7d79ca52b8347746bb438ada41bd 100644 (file)
@@ -365,7 +365,7 @@ class Photo {
         if($this->is_imagick()) {
             $this->image->setFirstIterator();
             do {
-                $this->image->resizeImage($max, $max, imagick::FILTER_LANCZOS, 1, false);
+                $this->image->resizeImage($dim, $dim, imagick::FILTER_LANCZOS, 1, false);
             } while ($this->image->nextImage());
             return;
         }