From daee4a650eb4f0700074ee5d8e2f6b24c81d650e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 16 Jan 2015 21:33:34 +0100 Subject: [PATCH] themes: require luci.version directly Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/themes/bootstrap/footer.htm | 11 +++-------- .../luasrc/view/themes/freifunk-bno/footer.htm | 5 ++++- .../luasrc/view/themes/freifunk-generic/footer.htm | 14 +++++++++----- .../luasrc/view/themes/openwrt.org/footer.htm | 5 ++++- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm index 09b497a10..6b028d7ff 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm @@ -12,20 +12,15 @@ You may obtain a copy of the License at -%> <% + local ver = require "luci.version" local disp = require "luci.dispatcher" - local request = disp.context.path - local category = request[1] - local tree = disp.node() - local categories = disp.node_childs(tree) %> -