From c593a210b2305f7901fcb45e0cc1810f4534164c Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 21 Jan 2019 14:20:10 +0100 Subject: luci-app-statisctis: only include lua modules in rrd statistics into local scope Signed-off-by: Florian Eckert --- applications/luci-app-statistics/luasrc/statistics/i18n.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'applications/luci-app-statistics/luasrc/statistics/i18n.lua') 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 -- cgit v1.2.3