From 9ba8d2aea994c832316f111354668f52de831043 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 5 Apr 2008 18:35:33 +0000 Subject: * Remove ffluci.util.__file__ as it relies on debug information * Added ffluci.debug for things that rely on debug information * Fixed a bug regarding path detection when Luci is bytecompiled --- src/ffluci/menu.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ffluci/menu.lua') diff --git a/src/ffluci/menu.lua b/src/ffluci/menu.lua index cbf47e2e3e..5a5f421e9d 100644 --- a/src/ffluci/menu.lua +++ b/src/ffluci/menu.lua @@ -29,9 +29,10 @@ require("ffluci.fs") require("ffluci.util") require("ffluci.template") require("ffluci.i18n") +require("ffluci.config") -- Default modelpath -modelpath = ffluci.fs.dirname(ffluci.util.__file__()) .. "/model/menu/" +modelpath = ffluci.config.path .. "/model/menu/" -- Menu definition extra scope scope = { -- cgit v1.2.3