Rewrote state based redirection
[project/luci.git] / libs / web / luasrc / config.lua
index 72bd5aa..258f5e6 100644 (file)
@@ -26,8 +26,8 @@ limitations under the License.
 ]]--
 
 module("luci.config",
-       function(m)
-               if pcall(require, "luci.model.uci") then
-                       setmetatable(m, {__index = luci.model.uci.get_all("luci")})
-               end
-       end)
\ No newline at end of file
+               function(m)
+                       if pcall(require, "luci.model.uci") then
+                               setmetatable(m, {__index = luci.model.uci.cursor():get_all("luci")})
+                       end
+               end)
\ No newline at end of file