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:
parent
02219b66b7
commit
8538b6f30d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
%>
|
||||
|
|
Loading…
Reference in a new issue