[BUGFIX] Typo in gifbuilder
authorSimon Schaufelberger <simonschaufi@googlemail.com>
Thu, 6 Oct 2011 10:13:31 +0000 (12:13 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Fri, 7 Oct 2011 21:27:39 +0000 (23:27 +0200)
stdWrap features GIFBUILDER transparentBackground and reduceColors
are broken

Change-Id: Ie162c1cf851dc237d3fa9a569c6dfb705c5f339c
Resolves: #29445
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/5628
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/class.tslib_gifbuilder.php

index 1296d78..488687c 100644 (file)
@@ -186,10 +186,10 @@ class tslib_gifBuilder extends t3lib_stdGraphic {
                                // Transparency does not properly work when, GIFs or 8-bit PNGs are generated or reduceColors is set -- disable truecolor flag so they get generated "natively" in 8-bit.
                                // not working with reduceColors and truecolor images
                        if(isset($this->setup['transparentBackground.'])) {
-                               $this->setup['transparentBackground'] = $this->cOjb->stdWrap($this->setup['transparentBackground'], $this->setup['transparentBackground.']);
+                               $this->setup['transparentBackground'] = $this->cObj->stdWrap($this->setup['transparentBackground'], $this->setup['transparentBackground.']);
                        }
                        if(isset($this->setup['reduceColors.'])) {
-                               $this->setup['reduceColors'] = $this->cOjb->stdWrap($this->setup['reduceColors'], $this->setup['reduceColors.']);
+                               $this->setup['reduceColors'] = $this->cObj->stdWrap($this->setup['reduceColors'], $this->setup['reduceColors.']);
                        }
                        if (($this->setup['transparentBackground'] || is_array($this->setup['transparentColor_array'])) && ($this->gifExtension=='gif' || !$this->png_truecolor || $this->setup['reduceColors']))       {
                                $this->truecolor = false;