[BUGFIX] Correct initialisation of BACK_PATH
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 17 Jul 2011 01:29:06 +0000 (03:29 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 17 Jul 2011 01:29:06 +0000 (03:29 +0200)
BACK_PATH needs to be set before calling setModuleTemplate().

Thanks to Daniel Minder.

Change-Id: Ia5a4c332ef50785150b58e2e4d7deff0a9544e26
Resolves: #28255
Releases: 4.5, 4.6

typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php

index 3fedaa3..a50027d 100644 (file)
@@ -293,8 +293,8 @@ class tx_linkvalidator_ModFuncReport extends t3lib_extobjbase {
                }
 
                $this->doc = t3lib_div::makeInstance('template');
-               $this->doc->setModuleTemplate(t3lib_extMgm::extPath('linkvalidator') . 'modfuncreport/mod_template.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
+               $this->doc->setModuleTemplate(t3lib_extMgm::extPath('linkvalidator') . 'modfuncreport/mod_template.html');
 
                $this->relativePath = t3lib_extMgm::extRelPath('linkvalidator');
                $this->pageRecord = t3lib_BEfunc::readPageAccess($this->pObj->id, $this->perms_clause);