0400-geo-location.lua.in: fix 0.0 GluonSrcDiet issue

This commit is contained in:
Jan-Tarek Butt 2018-07-23 00:00:14 +02:00
parent 6729624b68
commit 097a8accca

View File

@ -14,14 +14,14 @@ return function(form, uci)
if uci_longitude ~= nil then if uci_longitude ~= nil then
return uci_longitude return uci_longitude
end end
return site.config_mode.geo_location.map.lon(0.0) return site.config_mode.geo_location.map.lon(0)
end end
local function show_lat() local function show_lat()
if uci_latitude ~= nil then if uci_latitude ~= nil then
return uci_latitude return uci_latitude
end end
return site.config_mode.geo_location.map.lat(0.0) return site.config_mode.geo_location.map.lat(0)
end end
local function site_zoom() local function site_zoom()