summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics/i18n.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-01-21 20:13:12 +0100
committerGitHub <noreply@github.com>2019-01-21 20:13:12 +0100
commit29c343c5ea7abbe9e81f316264800702479a90ff (patch)
tree0f10f96175ff9803d6c3ce57621423ecbd89f786 /applications/luci-app-statistics/luasrc/statistics/i18n.lua
parenta86c068870dea59844a282ca43885ef4fcbfa07f (diff)
parentc593a210b2305f7901fcb45e0cc1810f4534164c (diff)
Merge pull request #2473 from TDT-AG/pr/20190121-luci-app-statistics
luci-app-statistics: some code cleanup
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/i18n.lua')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/i18n.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/i18n.lua b/applications/luci-app-statistics/luasrc/statistics/i18n.lua
index 7877e61ab3..6b01958cbe 100644
--- a/applications/luci-app-statistics/luasrc/statistics/i18n.lua
+++ b/applications/luci-app-statistics/luasrc/statistics/i18n.lua
@@ -3,15 +3,14 @@
module("luci.statistics.i18n", package.seeall)
-require("luci.util")
-require("luci.i18n")
+local util = require("luci.util")
+local i18n = require("luci.i18n")
-Instance = luci.util.class()
-
+Instance = util.class()
function Instance.__init__( self, graph )
- self.i18n = luci.i18n
+ self.i18n = i18n
self.graph = graph
end