diff options
author | Steven Barth <steven@midlink.org> | 2008-06-25 14:58:18 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-25 14:58:18 +0000 |
commit | b85d292bcd13f7527d6a2c1d204ebf78bc417e06 (patch) | |
tree | cd12d1e5a9ba973b828a59a9bfb6758f806a3593 /libs/web/luasrc/dispatcher.lua | |
parent | 1a9fe9cd77e70674270101c9566efea6fd7c11bb (diff) |
* libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 60178741e..5bf3fc1d6 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -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 |