Fixed Reboot pages
[project/luci.git] / modules / admin-mini / luasrc / view / mini / reboot.htm
index 600da36..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> 
@@ -25,9 +25,9 @@ if c and next(c) then
 end
 if not reboot then 
 -%>
-<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:a_s_reboot_do%></a></p>
+<p><a href="<%=REQUEST_URI%>?reboot=1"><%:a_s_reboot_do%></a></p>
 <%- else -%>
 <p><%:a_s_reboot_running%></p>
-<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
+<script type="text/javascript">setTimeout("location='<%=controller%>'", 60000)</script>
 <%- end -%>
 <%+footer%>
\ No newline at end of file