Follow-up to bug #11985: backPath in FE is set too late
authorSteffen Kamper <info@sk-typo3.de>
Fri, 18 Sep 2009 07:47:45 +0000 (07:47 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 18 Sep 2009 07:47:45 +0000 (07:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5970 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_pagerenderer.php
typo3/sysext/cms/tslib/class.tslib_fe.php

index 1ff6166..1d5bb3d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-09-17  Steffen Kamper  <info@sk-typo3.de>
 
+       * Follow-up to bug #11985: backPath in FE is set too late
+
+2009-09-17  Steffen Kamper  <info@sk-typo3.de>
+
        * Cleanup #11991: Cleanup TCEforms suggest CSS
        * Fixed bug #11396: redirects not working for felogin on pages with access set
        * Follow-up to bug #11985: corrected calls loadScriptaculous() in tceforms
index 461c141..d52ca9c 100644 (file)
@@ -258,6 +258,16 @@ class t3lib_PageRenderer implements t3lib_Singleton {
        public function setTemplateFile($file) {
                $this->templateFile = $file;
        }
+       
+       /**
+        * Sets back path
+        * 
+        * @param string $backPath
+        * @return void
+        */
+       public function setBackPath($backPath) {
+               $this->backPath = $backPath;
+       }
 
        /**
         * Sets Content for Body
index 196ecbb..dd7dfe8 100644 (file)
                if (!isset($this->pageRenderer)) {
                        $this->pageRenderer = t3lib_div::makeInstance('t3lib_PageRenderer');
                        $this->pageRenderer->setTemplateFile(PATH_tslib . 'templates/tslib_page_frontend.html');
+                       $this->pageRenderer->setBackPath(TYPO3_mainDir);
                }
                return $this->pageRenderer;
        }