Merge pull request 'add frontend path to template generation' (#46) from bugfix/missing-template-#43 into develop

Reviewed-on: #46
Dieser Commit ist enthalten in:
Ortwin Pinke 2023-10-14 15:05:34 +00:00
Commit 449cc39cdc
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -184,7 +184,6 @@ class Template {
global $cCurrentModule; global $cCurrentModule;
$cfg = cRegistry::getConfig(); $cfg = cRegistry::getConfig();
$aCfgClient = cRegistry::getClientConfig(cRegistry::getClientId());
$bModTplUsed = FALSE; $bModTplUsed = FALSE;
if (isset($cCurrentModule) && $cfg['dceModEdit']['use']) { if (isset($cCurrentModule) && $cfg['dceModEdit']['use']) {
@ -201,8 +200,8 @@ class Template {
} }
} }
if (is_file("templates/" . $template) && !$bModTplUsed) { if (is_file(cRegistry::getFrontendPath() . "templates/" . $template) && !$bModTplUsed) {
$template = "templates/" . $template; $template = cRegistry::getFrontendPath() . "templates/" . $template;
} }
//check if the template is a file or a string //check if the template is a file or a string