Fixed bug #3777: thumbs.php looks for file in t3lib/gfx instead of typo3/gfx
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 10 Oct 2006 08:22:28 +0000 (08:22 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 10 Oct 2006 08:22:28 +0000 (08:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1748 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/thumbs.php

index df1a18c..2f3c647 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+
+2006-09-10  Martin Kutschker  <martin.t.kutschker@blackbox.net>
+
+       * Fixed bug #3777: thumbs.php looks for file in t3lib/gfx instead of typo3/gfx
+
 2006-09-20  Bernhard Kraft  <kraftb@kraftb.at>
 
        * Fixed a missing space in typo3/template.php
index 4946ceb..30d098d 100755 (executable)
@@ -272,10 +272,10 @@ class SC_t3lib_thumbs {
                        // Creates the basis for the error image
                if ($TYPO3_CONF_VARS['GFX']['gdlib_png'])       {
                        Header('Content-type: image/png');
-                       $im = imagecreatefrompng(PATH_t3lib.'gfx/notfound_thumb.png');
+                       $im = imagecreatefrompng(TYPO3_mainDir.'gfx/notfound_thumb.png');
                } else {
                        Header('Content-type: image/gif');
-                       $im = imagecreatefromgif(PATH_t3lib.'gfx/notfound_thumb.gif');
+                       $im = imagecreatefromgif(TYPO3_mainDir.'gfx/notfound_thumb.gif');
                }
                        // Sets background color and print color.
            $white = ImageColorAllocate($im, 0,0,0);