summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-08-28 10:29:33 +0000
committerManuel Munz <freifunk@somakoma.de>2011-08-28 10:29:33 +0000
commit8538b6f30d126347c2a1f43ee333db4ccd42e7af (patch)
treeb2f5ce1d8b8a10391efc75da6b1b671c725c8814
parent02219b66b7acc2cc4688c68e651ceccfbf6c396b (diff)
modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found in /etc/config/system
-rw-r--r--modules/freifunk/luasrc/view/freifunk/contact.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/view/freifunk/contact.htm b/modules/freifunk/luasrc/view/freifunk/contact.htm
index 0d917ad5b6..1ebbf69f71 100644
--- a/modules/freifunk/luasrc/view/freifunk/contact.htm
+++ b/modules/freifunk/luasrc/view/freifunk/contact.htm
@@ -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")
%>