modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found in /etc/config/system

This commit is contained in:
Manuel Munz 2011-08-28 10:29:33 +00:00
parent 02219b66b7
commit 8538b6f30d

View file

@ -17,7 +17,7 @@ $Id$
<%
local uci = require "luci.model.uci".cursor()
local contact = uci:get_all("freifunk", "contact")
local location = uci:get_first("system", "system", "location")
local location = uci:get_first("system", "system", "location") or contact.location
local lon = uci:get_first("system", "system", "longitude")
local lat = uci:get_first("system", "system", "latitude")
%>