Revert "* luci/core: dispatcher.lua: fix build_url()"
authorSteven Barth <steven@midlink.org>
Thu, 29 May 2008 13:51:32 +0000 (13:51 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 29 May 2008 13:51:32 +0000 (13:51 +0000)
This reverts commit 7512f2e5f533cb8ef51a9e4ee01081da0df23853.

applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
libs/web/luasrc/dispatcher.lua

index 76fb373da59453db7dd5ff9888462362c7c8ef29..43d082d9c5215d64d53767f02570cf8e4ee1defb 100644 (file)
@@ -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
index 3bf9ac9d4b97495fc41626f492b55ef1af202814..fc551a4bdeb54efa83985742e7c83e3998d1f0c8 100644 (file)
@@ -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