Revert "* luci/core: dispatcher.lua: fix build_url()"
This reverts commit 7512f2e5f533cb8ef51a9e4ee01081da0df23853.
This commit is contained in:
parent
908332e3e9
commit
fe7cbc15b8
2 changed files with 3 additions and 3 deletions
|
@ -128,9 +128,9 @@ function statistics_render()
|
||||||
-- redirect to first instance and return
|
-- redirect to first instance and return
|
||||||
local r = luci.dispatcher.request
|
local r = luci.dispatcher.request
|
||||||
|
|
||||||
luci.http.redirect( luci.dispatcher.build_url( {
|
luci.http.redirect( luci.dispatcher.build_url(
|
||||||
r[1], r[2], r[3], instances[1]
|
r[1], r[2], r[3], instances[1]
|
||||||
} ) )
|
) )
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -46,7 +46,7 @@ built_tree = false
|
||||||
|
|
||||||
|
|
||||||
-- Builds a URL
|
-- Builds a URL
|
||||||
function build_url(arg)
|
function build_url(...)
|
||||||
return luci.http.dispatcher() .. "/" .. table.concat(arg, "/")
|
return luci.http.dispatcher() .. "/" .. table.concat(arg, "/")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue