From 8538b6f30d126347c2a1f43ee333db4ccd42e7af Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 28 Aug 2011 10:29:33 +0000 Subject: [PATCH] modules/freifunk: Try to get the location from /etc/config/freifunk if it isn't found in /etc/config/system --- modules/freifunk/luasrc/view/freifunk/contact.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/freifunk/luasrc/view/freifunk/contact.htm b/modules/freifunk/luasrc/view/freifunk/contact.htm index 0d917ad5b..1ebbf69f7 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") %> -- 2.25.1