From: Jo-Philipp Wich Date: Sun, 3 Nov 2019 19:01:39 +0000 (+0100) Subject: luci-app-statistics: stat-genconfig: add missing i18n module import X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8a84b63dc9cac38ab68f9517c31004095441706e;p=oweals%2Fluci.git 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 --- 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()