keep original template filename for the possible error message to show the correct file that was not found
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -49,13 +49,13 @@ function getTemplate($template, $noarea = 0) {
|
||||
|
||||
if ($templatefile == false && $theme != $fallback_theme) {
|
||||
// check fallback
|
||||
$filename = './templates/' . $fallback_theme . '/' . $template . '.tpl';
|
||||
$templatefile = _checkAndParseTpl($filename);
|
||||
$_filename = './templates/' . $fallback_theme . '/' . $template . '.tpl';
|
||||
$templatefile = _checkAndParseTpl($_filename);
|
||||
|
||||
if ($templatefile == false) {
|
||||
// check for old layout
|
||||
$filename = './templates/' . $template . '.tpl';
|
||||
$templatefile = _checkAndParseTpl($filename);
|
||||
$_filename = './templates/' . $template . '.tpl';
|
||||
$templatefile = _checkAndParseTpl($_filename);
|
||||
|
||||
if ($templatefile == false) {
|
||||
// not found
|
||||
|
||||
Reference in New Issue
Block a user