projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9f0236
)
luci-base: fix (again) rendering ucode templates in `template` target
author
Jo-Philipp Wich
<jo@mein.io>
Tue, 22 Nov 2022 14:00:36 +0000
(15:00 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Tue, 22 Nov 2022 14:01:32 +0000
(15:01 +0100)
Fixes: #6111
Fixes: a5d21dadbd ("luci-base: fix rendering ucode templates from `template` target")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/dispatcher.uc
patch
|
blob
|
history
diff --git
a/modules/luci-base/ucode/dispatcher.uc
b/modules/luci-base/ucode/dispatcher.uc
index 50201be0f4c75194c33a7952e9d11068fc2aa4cd..9d310bb5c274cdfc2286ffd8e1d91422fa2dd033 100644
(file)
--- 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);