fix use of global

This commit is contained in:
Pierre Chapuis 2013-11-25 16:31:43 +01:00
parent 6d5e40c324
commit 7f537c189f

View File

@ -219,6 +219,7 @@ end
-- corresponding absolute url -- corresponding absolute url
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
function _M.absolute(base_url, relative_url) function _M.absolute(base_url, relative_url)
local base_parsed
if base.type(base_url) == "table" then if base.type(base_url) == "table" then
base_parsed = base_url base_parsed = base_url
base_url = _M.build(base_parsed) base_url = _M.build(base_parsed)