Fix logic error in view delegation thing

This commit is contained in:
Celestora 2021-12-27 14:10:15 +02:00
parent 5f839e1bb6
commit ba400a21e3
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class Router
$tpl = $this->scope["_template"] ?? "$presenterName/$action.xml";
if($tpl[0] !== "/") {
$dir = CHANDLER_EXTENSIONS_ENABLED . "/$namespace/Web/Presenters/templates";
$tpl = "$dir/$tplCandidate";
$tpl = "$dir/$tpl";
if(isset($this->scope["_templatePath"]))
$tpl = str_replace($dir, $this->scope["_templatePath"], $tpl);
}