aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_upload.php4
-rw-r--r--phpBB/includes/message_parser.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index f605f89d4d..ea82a23082 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -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)
{
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 3d263748cb..bc53336a3f 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -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)
{