libs/web: eliminate another uneeded require in dispatcher
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 12 Aug 2011 12:34:13 +0000 (12:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 12 Aug 2011 12:34:13 +0000 (12:34 +0000)
libs/web/luasrc/dispatcher.lua

index 5fdd0a6..89fa52e 100644 (file)
@@ -229,7 +229,7 @@ function dispatch(request)
        ctx.path = preq
 
        if track.i18n then
-               require("luci.i18n").loadc(track.i18n)
+               i18n.loadc(track.i18n)
        end
 
        -- Init template engine