diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-11-21 12:24:31 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-11-21 12:24:31 +0100 |
commit | 08ae8d40a939654d2e4a1774853c5c5683b12268 (patch) | |
tree | 3a0dc2b7a423b5535fdd38da0f99851d7b0b767f /modules/luci-lua-runtime | |
parent | c4d86c9f670a31e4541ccdf1876be3ab8b98ee5c (diff) |
luci-base, luci-lua-runtime: fix "dispatched" and "requested" properties
Ensure to properly emulate the "dispatched" and "requested" properties
which refer to the executed and initially resolved menu node respectivey.
Also stop exposing a `node` property in Lua context to maintain full
compatibility with the old Lua runtime.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-lua-runtime')
-rw-r--r-- | modules/luci-lua-runtime/luasrc/dispatcher.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/luci-lua-runtime/luasrc/dispatcher.lua b/modules/luci-lua-runtime/luasrc/dispatcher.lua index f97e84a69b..608b9b6674 100644 --- a/modules/luci-lua-runtime/luasrc/dispatcher.lua +++ b/modules/luci-lua-runtime/luasrc/dispatcher.lua @@ -12,8 +12,6 @@ context = setmetatable({}, { return _G.L.ctx.request_path elseif k == "requestargs" then return _G.L.ctx.request_args - elseif k == "requested" or k == "dispatched" then - return _G.L.node else return _G.L.ctx[k] end |