Fix template fallback for non-absolute templates

This commit is contained in:
celestora 2022-01-27 16:31:23 +02:00 committed by GitHub
parent 3c3e885062
commit 8345b43922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class Router
if(!file_exists($tpl)) {
trigger_error("Could not open $tpl as template, falling back.", E_USER_NOTICE);
$tpl = "$presenterName/$action.xml";
$tpl = CHANDLER_EXTENSIONS_ENABLED . "/$namespace/Web/Presenters/templates/$presenterName/$action.xml";
}
$output = $this->delegateView($tpl, $presenter);