diff options
author | Steven Barth <steven@midlink.org> | 2008-05-29 13:51:32 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-29 13:51:32 +0000 |
commit | fe7cbc15b84da52097c2c50ebcf96f95825587d0 (patch) | |
tree | 2ceb905223012fae68442984fca948f2d594b488 | |
parent | 908332e3e9ba183d2d18ce302fb1478a41d2631b (diff) |
Revert "* luci/core: dispatcher.lua: fix build_url()"
This reverts commit 7512f2e5f533cb8ef51a9e4ee01081da0df23853.
-rw-r--r-- | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 4 | ||||
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua index 76fb373da5..43d082d9c5 100644 --- a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua +++ b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua @@ -128,9 +128,9 @@ function statistics_render() -- redirect to first instance and return 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] - } ) ) + ) ) return end diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 3bf9ac9d4b..fc551a4bde 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -46,7 +46,7 @@ built_tree = false -- Builds a URL -function build_url(arg) +function build_url(...) return luci.http.dispatcher() .. "/" .. table.concat(arg, "/") end |