Use PATH_site rather then TYPO3_mainDir
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 10 Oct 2006 08:29:31 +0000 (08:29 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 10 Oct 2006 08:29:31 +0000 (08:29 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1750 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/thumbs.php

index 30d098d..2e056c6 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(TYPO3_mainDir.'gfx/notfound_thumb.png');
+                       $im = imagecreatefrompng(PATH_site.'typo3/gfx/notfound_thumb.png');
                } else {
                        Header('Content-type: image/gif');
-                       $im = imagecreatefromgif(TYPO3_mainDir.'gfx/notfound_thumb.gif');
+                       $im = imagecreatefromgif(PATH_site.'typo3/gfx/notfound_thumb.gif');
                }
                        // Sets background color and print color.
            $white = ImageColorAllocate($im, 0,0,0);