Fix template file path resolution
authorfab1en <fab1en@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 25 Oct 2012 11:50:21 +0000 (11:50 +0000)
committerfab1en <fab1en@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 25 Oct 2012 11:50:21 +0000 (11:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/phpdisplay/trunk@67422 735d13b6-9817-0410-8766-e36946ffe9aa

class.tx_phpdisplay.php

index 0fd8d73..b301804 100644 (file)
@@ -170,9 +170,9 @@ class tx_phpdisplay extends tx_tesseract_feconsumerbase {
                $templateFile = $this->consumerData['template'];
 
                if (preg_match('/^FILE:/isU', $templateFile)) {
-                       $filePath = str_replace('FILE:', '' , $templateFile);
+                       $templateFile = str_replace('FILE:', '' , $templateFile);
                }
-               $templateFile = t3lib_div::getFileAbsFileName($filePath);
+               $templateFile = t3lib_div::getFileAbsFileName($templateFile);
 
                if (is_file($templateFile)) {
                                /** @var $template tx_phpdisplay_template */