Skip to content

Commit

Permalink
Removed creating Imagick object
Browse files Browse the repository at this point in the history
  • Loading branch information
apphp committed Feb 1, 2024
1 parent b3486a2 commit 81d94ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/web/widgets/captcha/CCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ public static function checkRequirements($extension=null)
{
if(extension_loaded('imagick'))
{
$imagick=new Imagick();
$imagickFormats=$imagick::queryFormats('PNG');
$imagickFormats=Imagick::queryFormats('PNG');
}
if(extension_loaded('gd'))
{
Expand Down

0 comments on commit 81d94ae

Please sign in to comment.