Fixed bug #9511: getHtmlTemplate should use resolveBackPath. Fixes bug for extension...
authorErnesto Baschny <ernst@cron-it.de>
Thu, 18 Dec 2008 08:42:01 +0000 (08:42 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 18 Dec 2008 08:42:01 +0000 (08:42 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4560 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/template.php

index 44645cd..ba3c55c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-18  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fixed bug #9511: getHtmlTemplate should use resolveBackPath. Fixes bug for extension BE modules using templates in certain environments (symlinked typo3/ dir) (thanks to Steffen Gebert)
+
 2008-12-10  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #9836: RTE TSconfig lost when uploading files or creating folders
index f811ab3..63be354 100755 (executable)
@@ -1835,7 +1835,7 @@ $str.=$this->docBodyTagBegin().
                if ($GLOBALS['TBE_STYLES']['htmlTemplates'][$filename]) {
                        $filename = $GLOBALS['TBE_STYLES']['htmlTemplates'][$filename];
                }
-               return ($filename ? t3lib_div::getURL($this->backPath . $filename) : '');
+               return ($filename ? t3lib_div::getURL(t3lib_div::resolveBackPath($this->backPath . $filename)) : '');
        }
 
        /**