From 8a84b63dc9cac38ab68f9517c31004095441706e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 3 Nov 2019 20:01:39 +0100 Subject: [PATCH] luci-app-statistics: stat-genconfig: add missing i18n module import Fixes the following runtime error: /usr/bin/lua: /usr/bin/stat-genconfig:289: attempt to index field 'i18n' (a nil value) stack traceback: /usr/bin/stat-genconfig:289: in main chunk Reported-by: Kevin Darbyshire-Bryant Signed-off-by: Jo-Philipp Wich --- applications/luci-app-statistics/root/usr/bin/stat-genconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index 0c49b1f95..82431fbd3 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -19,6 +19,7 @@ $Id$ require("luci.model.uci") require("luci.sys.iptparser") require("luci.util") +require("luci.i18n") require("nixio.fs") local ipt = luci.sys.iptparser.IptParser() -- 2.25.1