From c882d1f501ec61245d86f46f8d740a35e5faaa81 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 5 Sep 2008 10:20:07 +0000 Subject: [PATCH] Fixed Reboot pages --- modules/admin-full/luasrc/view/admin_system/reboot.htm | 2 +- modules/admin-mini/luasrc/view/mini/reboot.htm | 2 +- 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$

<%: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 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$

<%: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%>

-- 2.25.1