mirror of
https://github.com/openvk/chandler.git
synced 2025-01-22 15:24:15 +03:00
Fix template fallback for non-absolute templates
This commit is contained in:
parent
3c3e885062
commit
8345b43922
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Router
|
||||||
|
|
||||||
if(!file_exists($tpl)) {
|
if(!file_exists($tpl)) {
|
||||||
trigger_error("Could not open $tpl as template, falling back.", E_USER_NOTICE);
|
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);
|
$output = $this->delegateView($tpl, $presenter);
|
||||||
|
|
Loading…
Reference in a new issue