summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 589cb731f..3d0db5a21 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -725,6 +725,7 @@ local function _cbi(self, ...)
end
local redirect
+ local messages
local applymap = false
local pageaction = true
local parsechain = { }
@@ -745,6 +746,11 @@ local function _cbi(self, ...)
if res.pageaction == false then
pageaction = false
end
+
+ if res.message then
+ messages = messages or { }
+ messages[#messages+1] = res.message
+ end
end
for i, res in ipairs(maps) do
@@ -752,6 +758,7 @@ local function _cbi(self, ...)
firstmap = (i == 1),
applymap = applymap,
redirect = redirect,
+ messages = messages,
pageaction = pageaction,
parsechain = parsechain
})