[TYPO3-german] Patch geschrieben - was nun?

Andy Grunwald [wmdb] andy_grunwald at arcor.de
Wed Jul 2 21:51:18 CEST 2008


Nochmals Hey von mir,

einen Nachtrag hab ich noch: http://typo3.org/development/bug-fixing/

Michael Stein schrieb:
> Hallo zusammen,
> ich habe für die Exension "captcha Library" einen kleinen Patch gemacht
> weil es auf meinem System imagerotate nicht gibt.
> 
> Wie kann ich den Kasper zukommen lassen?
> 
> kasper2008 at typo3.org funktioniert nicht.
> 
> Gruß Michael
> 
> PS.: Für alle die das Problem auch haben:
> 
> --- captcha.php.org    2008-06-25 09:27:58.000000000 +0200
> +++ captcha.php    2008-06-25 09:28:34.000000000 +0200
> @@ -75,7 +75,17 @@
>             $fcol = imagecolorallocate($tmpi, $tcolor[0], $tcolor[1], 
> $tcolor[2]);
>             imagefill($tmpi, 0, 0, $back);
>             imagestring($tmpi, 5, $osx, $osy, $c, $fcol);
> -            $rot = imagerotate($tmpi, $da, $back);
> +
> +            if (function_exists(imagerotate)) {
> +                $rot = imagerotate($tmpi, $da, $back);
> +            } else {
> +                require_once(PATH_t3lib.'class.t3lib_stdgraphic.php');
> +                $obj = new t3lib_stdGraphic();
> +                $obj->tempPath=PATH_site.'typo3temp/';
> +                $obj->applyImageMagickToPHPGif($tmpi,'-rotate '.$da);
> +                $rot=$tmpi;
> +            }
> +
>             $rback = imagecolorclosest($rot, $bcolor[0], $bcolor[1], 
> $bcolor[2]);
>             imagecolortransparent($rot, $rback);
>             imagecopymerge($img, $rot, $xpos+$dx, $ypos+$dy, 0, 0, 20, 
> 20, 100);


More information about the TYPO3-german mailing list