]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'nightly' of gitorious.org:social/mainline into nightly
authorRoland Haeder <roland@mxchange.org>
Sun, 25 Jan 2015 12:57:28 +0000 (13:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 25 Jan 2015 12:57:28 +0000 (13:57 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Conflicts:
classes/File.php

14 files changed:
1  2 
actions/apimediaupload.php
actions/attachment.php
actions/confirmaddress.php
actions/recoverpassword.php
classes/File.php
classes/Notice.php
lib/default.php
lib/framework.php
lib/imagefile.php
plugins/Mapstraction/actions/map.php
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/lib/magicenvelope.php
scripts/clear_jabber.php
scripts/registeruser.php

Simple merge
Simple merge
Simple merge
Simple merge
index 9bb22e502b6203297980c2c93769b357954820fa,68da5c6f1ba6583d5f58a94b89f166969000967a..429ecc455cd295befc4c7656797327f041cbaa3e
@@@ -432,25 -422,14 +425,26 @@@ class File extends Managed_DataObjec
          // Doublecheck that parameters are sane and integers.
          if ($box['width'] < 1 || $box['width'] > common_config('thumbnail', 'maxsize')
                  || $box['height'] < 1 || $box['height'] > common_config('thumbnail', 'maxsize')
-                 || $box['w'] < 1 || $box['x'] >= $this->width
-                 || $box['h'] < 1 || $box['y'] >= $this->height) {
+                 || $box['w'] < 1 || $box['x'] >= $image->width
+                 || $box['h'] < 1 || $box['y'] >= $image->height) {
              // Fail on bad width parameter. If this occurs, it's due to algorithm in ImageFile->scaleToFit
-             common_debug("Boundary box parameters for resize of {$this->filepath} : ".var_export($box,true));
+             common_debug("Boundary box parameters for resize of {$image->filepath} : ".var_export($box,true));
 -            throw new ServerException('Bad thumbnail size parameters.');
 +            throw new ServerException('Bad thumbnail size parameters. maxsize=' .
 +                common_config('thumbnail', 'maxsize') .
 +                ',box[width]=' . $box['width'] .
 +                ',box[height]=' . $box['height'] .
 +                ',box[w]=' . $box['w'] .
 +                ',box[h]=' . $box['h'] .
 +                ',box[x]=' . $box['x'] .
 +                ',box[y]=' . $box['y'] .
 +                ',this->width=' . $this->width .
 +                ',this->heigh=' . $this->height .
 +                ',this->filepath=' . $this->filepath .
 +                ',this->filename=' . $this->filename
 +            );
          }
  
+         common_debug(sprintf('Generating a thumbnail of File id==%u of size %ux%u', $this->id, $width, $height));
          // Perform resize and store into file
          $image->resizeTo($outpath, $box);
  
Simple merge
diff --cc lib/default.php
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge