summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/config.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-01 12:12:18 +0000
committerSteven Barth <steven@midlink.org>2008-06-01 12:12:18 +0000
commitb454395a8da4013aff2ecd64cd7eafc01fc6a5a2 (patch)
tree0071604ca65f1e520ee2f56b6cf6343bc5297df9 /libs/web/luasrc/config.lua
parent1da5feb9f720fd48a886aad09df91bd8cc9df4c8 (diff)
* Performance optimizations
* libs/core: Added bytecode stripping function to luci.util * libs/core: Added smart indexcache that automatically updates cached index-files on change * libs/web: Enabled template caching support * Core Translation part 4
Diffstat (limited to 'libs/web/luasrc/config.lua')
-rw-r--r--libs/web/luasrc/config.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/web/luasrc/config.lua b/libs/web/luasrc/config.lua
index 854b12814..4eb8e46e4 100644
--- a/libs/web/luasrc/config.lua
+++ b/libs/web/luasrc/config.lua
@@ -25,10 +25,9 @@ limitations under the License.
]]--
-module("luci.config", package.seeall)
-require("luci.model.uci")
-require("luci.util")
-require("luci.sys")
+local uci = require("luci.model.uci")
+local util = require("luci.util")
+module("luci.config")
-- Warning! This is only for fallback and compatibility purporses! --
main = {}
@@ -42,7 +41,7 @@ main.lang = "de"
-- Now overwrite with UCI values
-local ucidata = luci.model.uci.sections("luci")
+local ucidata = uci.sections("luci")
if ucidata then
- luci.util.update(luci.config, ucidata)
+ util.update(_M, ucidata)
end \ No newline at end of file