aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-04-07 16:19:36 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-04-24 13:33:14 +0200
commit39d6180c6814996dde84cfcd8c0150bba37354ac (patch)
treebf5bb1d69e0416a5d84ce6f76fdcee72605a80e4 /phpBB/includes
parent3fc7a352ff308ff4b5a038e807a6f803572242d5 (diff)
downloadforums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar.gz
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar.bz2
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar.xz
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.zip
[ticket/8672] Use fastImageSize in classes
PHPBB3-8672
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)
{