Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vendeeglobe committed Jun 7, 2022
1 parent cc39cd8 commit 751a0b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/action/forums.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// if you define pages, it must be done for all subforums and topic pages

// define variables
$_pages = '';
$pages ??= '';
$comment = null;

if (!isset($noxml)) $noxml = 0;
Expand Down
6 changes: 2 additions & 4 deletions src/lib/phpthumb/GD.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,11 +729,9 @@ public function rotateImageNDegrees(int $degrees): GD

$this->workingImage = imagerotate($this->oldImage, $degrees, 0);

$newWidth = $this->currentDimensions['height'];
$newHeight = $this->currentDimensions['width'];
$this->oldImage = $this->workingImage;
$this->currentDimensions['width'] = $newWidth;
$this->currentDimensions['height'] = $newHeight;
$this->currentDimensions['width'] = imagesx($this->workingImage);
$this->currentDimensions['height'] = imagesy($this->workingImage);

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/phpthumb/PHPThumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* PhpThumb : PHP Thumb Library <https://github.com/PHPThumb/PHPThumb>
* Copyright (c) 2009, Ian Selby/Gen X Design
*
* Author(s): Ian Selby <ian@gen-x-design.com>
* Author(s): Ian Selby <ianrselby@gmail.com>
*
* Licensed under the MIT License
* Redistributions of files must retain the above copyright notice.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/phpthumb/Plugins/Reflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This file contains the plugin definition for the GD Reflection Lib for PHP Thumb
*
* PHP Version 5.3 with GD 2.0+
* PHP Version 7 with GD 2.2+
* PhpThumb : PHP Thumb Library <https://github.com/PHPThumb/PHPThumb>
* Copyright (c) 2009, Ian Selby/Gen X Design
*
Expand Down

0 comments on commit 751a0b2

Please sign in to comment.