modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found...
[project/luci.git] / modules / freifunk / luasrc / view / freifunk / contact.htm
index 0d917ad5b674cf2a5548cadaab702c0242cc8679..1ebbf69f71054fc13f7681ac38df6ecdbc41fb5f 100644 (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")
 %>