Commit 77d63835 authored by Ad Schellevis's avatar Ad Schellevis

replace use of get_backups with new version

parent 1940927e
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("script/load_phalcon.php");
if (isset($_POST['backupcount'])) { if (isset($_POST['backupcount'])) {
if (is_numeric($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) { if (is_numeric($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) {
...@@ -89,9 +90,9 @@ if (($_GET['diff'] == 'Diff') && isset($_GET['oldtime']) && isset($_GET['newtime ...@@ -89,9 +90,9 @@ if (($_GET['diff'] == 'Diff') && isset($_GET['oldtime']) && isset($_GET['newtime
} }
} }
cleanup_backupcache(false); // list backups
$confvers = get_backups(); $cnf = OPNsense\Core\Config::getInstance();
unset($confvers['versions']); $confvers = $cnf->getBackups(true);
$pgtitle = array(gettext("Diagnostics"),gettext("Configuration History")); $pgtitle = array(gettext("Diagnostics"),gettext("Configuration History"));
include("head.inc"); include("head.inc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment