summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-05 10:20:07 +0000
committerSteven Barth <steven@midlink.org>2008-09-05 10:20:07 +0000
commitc882d1f501ec61245d86f46f8d740a35e5faaa81 (patch)
treec5c9ac4543842591790b582c682d44156a310d72
parentcac36db0805f0238f374db15408c6820ab08eb60 (diff)
Fixed Reboot pages
-rw-r--r--modules/admin-full/luasrc/view/admin_system/reboot.htm2
-rw-r--r--modules/admin-mini/luasrc/view/mini/reboot.htm2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/view/admin_system/reboot.htm b/modules/admin-full/luasrc/view/admin_system/reboot.htm
index 600da36fc..b7b10b50f 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$
<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>
diff --git a/modules/admin-mini/luasrc/view/mini/reboot.htm b/modules/admin-mini/luasrc/view/mini/reboot.htm
index 6ef8603f0..9bf2d43cf 100644
--- a/modules/admin-mini/luasrc/view/mini/reboot.htm
+++ b/modules/admin-mini/luasrc/view/mini/reboot.htm
@@ -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>