Fixed Reboot pages
authorSteven Barth <steven@midlink.org>
Fri, 5 Sep 2008 10:20:07 +0000 (10:20 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 5 Sep 2008 10:20:07 +0000 (10:20 +0000)
modules/admin-full/luasrc/view/admin_system/reboot.htm
modules/admin-mini/luasrc/view/mini/reboot.htm

index 600da36..b7b10b5 100644 (file)
@@ -17,7 +17,7 @@ $Id$
 <h2><%:reboot%></h2>
 <p><%:a_s_reboot1%></p>
 <%-
-local c = require("luci.model.uci").changes()
+local c = require("luci.model.uci").cursor():changes()
 if c and next(c) then
 -%>
        <p class="warning"><%:a_s_reboot_u%></p> 
index 6ef8603..9bf2d43 100644 (file)
@@ -17,7 +17,7 @@ $Id$
 <h2><%:reboot%></h2>
 <p><%:a_s_reboot1%></p>
 <%-
-local c = require("luci.model.uci").changes()
+local c = require("luci.model.uci").cursor():changes()
 if c and next(c) then
 -%>
        <p class="warning"><%:a_s_reboot_u%></p>