From 9d10c2e671283f7b089ceb912e103e6ebf8ed720 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 22 Nov 2022 15:00:36 +0100 Subject: [PATCH] luci-base: fix (again) rendering ucode templates in `template` target Fixes: #6111 Fixes: a5d21dadbd ("luci-base: fix rendering ucode templates from `template` target") Signed-off-by: Jo-Philipp Wich --- modules/luci-base/ucode/dispatcher.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/ucode/dispatcher.uc b/modules/luci-base/ucode/dispatcher.uc index 50201be0f4..9d310bb5c2 100644 --- a/modules/luci-base/ucode/dispatcher.uc +++ b/modules/luci-base/ucode/dispatcher.uc @@ -775,7 +775,7 @@ function run_action(request_path, lang, tree, resolved, action) { switch (action?.type) { case 'template': if (runtime.is_ucode_template(action.path)) - runtime.render_ucode(action.path); + runtime.render(action.path, {}); else render_action(() => { runtime.call('luci.dispatcher', 'render_lua_template', action.path);