summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-11-03 20:01:39 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-03 20:03:01 +0100
commit8a84b63dc9cac38ab68f9517c31004095441706e (patch)
tree534189c374f7f391981316de91da8a7a82ffe49a /applications/luci-app-statistics/root
parentaf88f9a006b23f3ec0e559b1192570930ec648b5 (diff)
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 <ldir@darbyshire-bryant.me.uk> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics/root')
-rwxr-xr-xapplications/luci-app-statistics/root/usr/bin/stat-genconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index 0c49b1f953..82431fbd39 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()