From 686ada2d407801ae61e7c88f8816306ccbbf6078 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 20 Apr 2010 14:06:26 +0000 Subject: [PATCH] fix to show all files in backup_dir, not only entrys with different ctime (ctime was used as key for list) --- setup/db_backup.php | 9 +++++---- setup/templates/default/db_backup.tpl | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/setup/db_backup.php b/setup/db_backup.php index 8afb2bbd07..942876241d 100644 --- a/setup/db_backup.php +++ b/setup/db_backup.php @@ -224,18 +224,18 @@ while($handle && ($file = readdir($handle))) { if ($file != '.' && $file != '..') { - $files[filectime($db_backup->backup_dir.'/'.$file)] = $file; + $files[$file] = filectime($db_backup->backup_dir.'/'.$file); } } if ($handle) closedir($handle); -krsort($files); -foreach($files as $ctime => $file) +arsort($files); +foreach($files as $file => $ctime) { $size = filesize($db_backup->backup_dir.'/'.$file); $setup_tpl->set_var(array( 'filename' => $file, - 'date' => date('Y-m-d H:i',$ctime), + 'mod' => date('Y-m-d H:i',$ctime), 'size' => sprintf('%3.1lf MB (%d)',$size/(1024*1024),$size), 'actions' => ' '."\n". ' {lang_filename} - {lang_date} + {lang_mod} {lang_size} {lang_actions} {filename} - {date} + {mod} {size} {actions}