mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/8672] Use fastImageSize in classes
PHPBB3-8672
This commit is contained in:
@@ -401,9 +401,9 @@ class filespec
|
||||
$this->width = $this->height = 0;
|
||||
|
||||
// Get imagesize class
|
||||
$imagesize = new \phpbb\upload\imagesize();
|
||||
$imagesize = new \fastImageSize\fastImageSize();
|
||||
|
||||
$this->image_info = $imagesize->get_imagesize($this->destination_file, $this->mimetype);
|
||||
$this->image_info = $imagesize->getImageSize($this->destination_file, $this->mimetype);
|
||||
|
||||
if ($this->image_info !== false)
|
||||
{
|
||||
|
@@ -339,8 +339,8 @@ class bbcode_firstpass extends bbcode
|
||||
|
||||
if ($config['max_' . $this->mode . '_img_height'] || $config['max_' . $this->mode . '_img_width'])
|
||||
{
|
||||
$imagesize = new \phpbb\upload\imagesize();
|
||||
$size_info = $imagesize->get_imagesize(htmlspecialchars_decode($in));
|
||||
$imagesize = new \fastImageSize\fastImageSize();
|
||||
$size_info = $imagesize->getImageSize(htmlspecialchars_decode($in));
|
||||
|
||||
if ($size_info === false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user