* libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url
authorSteven Barth <steven@midlink.org>
Wed, 25 Jun 2008 14:58:18 +0000 (14:58 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 25 Jun 2008 14:58:18 +0000 (14:58 +0000)
libs/web/luasrc/dispatcher.lua

index 6017874..5bf3fc1 100644 (file)
@@ -40,7 +40,7 @@ local fi
 
 -- Builds a URL
 function build_url(...)
-       return luci.http.dispatcher() .. "/" .. table.concat(arg, "/")
+       return luci.http.getenv("SCRIPT_NAME") .. "/" .. table.concat(arg, "/")
 end
 
 -- Prints an error message or renders the "error401" template if available