projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af88f9a
)
luci-app-statistics: stat-genconfig: add missing i18n module import
author
Jo-Philipp Wich
<jo@mein.io>
Sun, 3 Nov 2019 19:01:39 +0000
(20:01 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Sun, 3 Nov 2019 19:03:01 +0000
(20:03 +0100)
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>
applications/luci-app-statistics/root/usr/bin/stat-genconfig
patch
|
blob
|
history
diff --git
a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index 0c49b1f953b6aa59789072e9af2c99e4949abdc6..82431fbd3919edc12d9bb91b4edb2858d5101908 100755
(executable)
--- 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()