From 31335524059f31ac537f029ad1eb10a83caa1728 Mon Sep 17 00:00:00 2001 From: Linty Date: Mon, 2 Sep 2024 18:23:52 +0200 Subject: [PATCH] fixes #2220 change scope of function get_resize_result also changed the required php version to 7.1.0 --- admin/include/image.class.php | 2 +- include/constants.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/include/image.class.php b/admin/include/image.class.php index 67f02a1a8..9ae2350cd 100644 --- a/admin/include/image.class.php +++ b/admin/include/image.class.php @@ -350,7 +350,7 @@ class pwg_image return $matrix; } - private function get_resize_result($destination_filepath, $width, $height, $time=null) + protected function get_resize_result($destination_filepath, $width, $height, $time=null) { return array( 'source' => $this->source_filepath, diff --git a/include/constants.php b/include/constants.php index 478483e0f..4bd617ab2 100644 --- a/include/constants.php +++ b/include/constants.php @@ -20,7 +20,7 @@ defined('PWG_COMBINED_DIR') or define('PWG_COMBINED_DIR', $conf['data_location'] defined('PWG_DERIVATIVE_DIR') or define('PWG_DERIVATIVE_DIR', $conf['data_location'].'i/'); // Required versions -define('REQUIRED_PHP_VERSION', '7.0.0'); +define('REQUIRED_PHP_VERSION', '7.1.0'); // Access codes define('ACCESS_FREE', 0);