From: Manuel Munz Date: Thu, 19 Feb 2015 19:20:31 +0000 (+0100) Subject: themes/freifunk-generic: fix error with version string display in header on BB X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8b123df2874a6eb17a6150667ba48247bad847ec;p=project%2Fluci.git themes/freifunk-generic: fix error with version string display in header on BB --- diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index d74916aea1..20a41be855 100644 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -10,6 +10,7 @@ local util = require "luci.util" local http = require "luci.http" local disp = require "luci.dispatcher" + local version = require "luci.version" local sysinfo = util.ubus("system", "info") or { } local loadinfo = sysinfo.load or { 0, 0, 0 } @@ -122,7 +123,7 @@ <%end%>
- <%=luci.version.distversion%>
+ <%=version.distversion%>
<%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%>
<%:Hostname%>: <%=boardinfo.hostname or "?"%>