Fixed bug #14813: Install Tool uses deprecated function t3lib_stdGraphic->imagecreate...
authorSusanne Moog <typo3@susannemoog.de>
Thu, 8 Jul 2010 15:57:43 +0000 (15:57 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 8 Jul 2010 15:57:43 +0000 (15:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8140 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_gifbuilder.php
typo3/sysext/install/mod/class.tx_install.php

index d0cb861..7905fc3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-07-08  Susanne Moog  <typo3@susanne-moog.de>
 
        * Follow-up to #14719: Wrong code comment (QUICKSTART/FIRST_INSTALL) (thanks to Steffen Gebert)
+       * Fixed bug #14813: Install Tool uses deprecated function t3lib_stdGraphic->imagecreate() (thanks to Stefan Galinski)
 
 2010-07-08  Dmitry Dulepov  <dmitry@typo3.org>
 
index 71853a3..a11664d 100644 (file)
@@ -348,7 +348,7 @@ class tslib_gifBuilder extends t3lib_stdGraphic {
                $XY = $this->XY;
 
                        // Gif-start
-               $this->im = $this->imagecreate($XY[0],$XY[1]);
+               $this->im = imagecreatetruecolor($XY[0], $XY[1]);
                $this->w = $XY[0];
                $this->h = $XY[1];
 
index 2690401..32c69bd 100755 (executable)
@@ -4806,7 +4806,7 @@ REMOTE_ADDR was '".t3lib_div::getIndpEnv('REMOTE_ADDR')."' (".t3lib_div::getIndp
                                if ($gdActive) {
                                        // GD with box
                                        $imageProc->IM_commands=array();
-                                       $im = $imageProc->imageCreate(170,136);
+                                       $im = imagecreatetruecolor(170, 136);
                                        $Bcolor = ImageColorAllocate ($im, 0, 0, 0);
                                        ImageFilledRectangle($im, 0, 0, 170, 136, $Bcolor);
                                        $workArea=array(0,0,170,136);
@@ -4842,7 +4842,7 @@ REMOTE_ADDR was '".t3lib_div::getIndpEnv('REMOTE_ADDR')."' (".t3lib_div::getIndp
 
                                                // GD with text
                                        $imageProc->IM_commands=array();
-                                       $im = $imageProc->imageCreate(170,136);
+                                       $im = imagecreatetruecolor(170, 136);
                                        $Bcolor = ImageColorAllocate ($im, 128,128,150);
                                        ImageFilledRectangle($im, 0, 0, 170, 136, $Bcolor);
                                        $workArea=array(0,0,170,136);