Skip to content

Commit

Permalink
* Fix update/install for Joomla 4
Browse files Browse the repository at this point in the history
* Update phpThumb lib
  • Loading branch information
denysdesign committed Oct 16, 2022
1 parent ab0ad1a commit bb29361
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
basedir=".">

<property name="VERSION"
value="5.1" />
value="5.2" />
<property name="build"
value="build" />
<property name="temp"
Expand Down
8 changes: 0 additions & 8 deletions packages/lib_juimage/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
*/
class JUImageInstallerScript
{
/**
* @since 5.0
*/
public function __construct()
{

}

/**
* @return bool
*
Expand Down
8 changes: 0 additions & 8 deletions script.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@

class Pkg_JUImageInstallerScript
{
/**
* @since 5.0
*/
public function __construct()
{

}

/**
* @return bool
* @since 5.0
Expand Down
10 changes: 7 additions & 3 deletions src/classes/phpthumb/phpthumb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@
'IMAGETYPE_WEBP' => 18, // PHP 7.0.10
'IMAGETYPE_AVIF' => 19, // PHP 8.1.0
);

foreach ($predefined_IMG_constants as $PHP_constant_name => $PHP_constant_value) {
if (!defined($PHP_constant_name)) {
define($PHP_constant_name, $PHP_constant_value);
}
}
unset($predefined_IMG_constants, $PHP_constant_name, $PHP_constant_value);
foreach ($predefined_IMAGETYPE_constants as $PHP_constant_name => $PHP_constant_value) {
if (!defined($PHP_constant_name)) {
define($PHP_constant_name, $PHP_constant_value);
}
}
unset($predefined_IMG_constants, $predefined_IMAGETYPE_constants, $PHP_constant_name, $PHP_constant_value);


class phpthumb {
Expand Down Expand Up @@ -261,7 +265,7 @@ class phpthumb {
public $issafemode = null;
public $php_memory_limit = null;

public $phpthumb_version = '1.7.18-202208061319';
public $phpthumb_version = '1.7.19-202210110924';

//////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit bb29361

Please sign in to comment.