From: Manuel Munz Date: Sun, 28 Aug 2011 10:29:33 +0000 (+0000) Subject: modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found... X-Git-Tag: 0.11.0~1869 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8538b6f30d126347c2a1f43ee333db4ccd42e7af;p=project%2Fluci.git modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found in /etc/config/system --- 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") %>