From: Steven Barth Date: Fri, 5 Sep 2008 10:20:07 +0000 (+0000) Subject: Fixed Reboot pages X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c882d1f501ec61245d86f46f8d740a35e5faaa81;p=openwrt-luci.git Fixed Reboot pages --- diff --git a/modules/admin-full/luasrc/view/admin_system/reboot.htm b/modules/admin-full/luasrc/view/admin_system/reboot.htm index 600da36fcb..b7b10b50fb 100644 --- a/modules/admin-full/luasrc/view/admin_system/reboot.htm +++ b/modules/admin-full/luasrc/view/admin_system/reboot.htm @@ -17,7 +17,7 @@ $Id$

<%:reboot%>

<%:a_s_reboot1%>

<%- -local c = require("luci.model.uci").changes() +local c = require("luci.model.uci").cursor():changes() if c and next(c) then -%>

<%:a_s_reboot_u%>

diff --git a/modules/admin-mini/luasrc/view/mini/reboot.htm b/modules/admin-mini/luasrc/view/mini/reboot.htm index 6ef8603f06..9bf2d43cf5 100644 --- a/modules/admin-mini/luasrc/view/mini/reboot.htm +++ b/modules/admin-mini/luasrc/view/mini/reboot.htm @@ -17,7 +17,7 @@ $Id$

<%:reboot%>

<%:a_s_reboot1%>

<%- -local c = require("luci.model.uci").changes() +local c = require("luci.model.uci").cursor():changes() if c and next(c) then -%>

<%:a_s_reboot_u%>