Project

General

Profile

Actions

Bug #20527

closed

getModuleTemplate is prepended with backPath always

Added by Steffen Kamper over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-05-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Problem:
when writing BE module extension you may have your template in your extension directory. For now the $filename is always prepended with backpath.

Solution:
use t3lib_div::getFileAbsFileName which allows using this syntax:
$this->doc->setModuleTemplate('EXT:myext/mod1/mod_template.html');

(issue imported from #M11216)


Files

11216.diff (565 Bytes) 11216.diff Administrator Admin, 2009-05-29 10:02
11216_v2.diff (1001 Bytes) 11216_v2.diff Administrator Admin, 2009-05-29 13:05
Actions #1

Updated by Martin Kutschker over 15 years ago

Please use t3lib_div::getFileAbsFileName($filename, true, true);

Only allowing only relative paths to typo3/ and EXT: will get us consistent results with $GLOBALS['TBE_STYLES']['htmlTemplates'][$filename].

Sidenote: the patch has trailing whitespaces.

Actions #2

Updated by Steffen Kamper over 15 years ago

committed v2 to trunk, rev 5521

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF