luci-base: break circular luci.config <> luci.model.uci dependency
authorJo-Philipp Wich <jo@mein.io>
Sat, 19 May 2018 11:07:37 +0000 (13:07 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 19 May 2018 11:07:37 +0000 (13:07 +0200)
commit9ed48ef2a62df5406c589ef9a43da51df8d9645c
treebbb649e12e54146e13274d59c7d1e4448e54f2ac
parent72fe5dd70335a6bbbe5db8ecc1885a68d368eb3a
luci-base: break circular luci.config <> luci.model.uci dependency

On certain environments, mainly with the embedded uhttpd interpreter, the
luci.config class cannot be loaded due to a circular dependency with the
luci.model.uci class.

Break up the dependency by deferring the loading of luci.config in
luci.model.uci until it is actually needed.

Fixes #1803, FS#1553.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/model/uci.lua