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:
Commit
449cc39cdc
|
@ -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
|
||||||
|
|
Laden…
In neuem Issue referenzieren