Improve bulk downloads page

This commit is contained in:
Alex Cabal 2022-07-09 10:28:13 -05:00
parent d659fb9649
commit dbc2fd5fcd
5 changed files with 91 additions and 13 deletions

View file

@ -93,5 +93,9 @@ foreach($ebooksByMonth as $month => $ebooks){
$zip->close();
rename($tempFilename, $filePath);
// Set a filesystem attribute for the number of ebooks in the file. This will be used
// to display that number on the downloads page.
exec('attr -q -s ebook-count -V ' . escapeshellarg(sizeof($ebooks)) . ' ' . escapeshellarg($filePath));
}
}