From d086ea59bd1de60bfb037e7e045eea339f6387ca Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sat, 9 Jul 2022 20:35:35 -0500 Subject: [PATCH] Abbreviate months in bulk download page --- lib/Library.php | 2 ++ www/bulk-downloads/index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Library.php b/lib/Library.php index 941cc008..65fc2ff3 100644 --- a/lib/Library.php +++ b/lib/Library.php @@ -263,6 +263,7 @@ class Library{ } $obj->UpdatedString = $obj->Updated->format('M j'); + $obj->UpdatedString = preg_replace('/^(.+?)(?UpdatedString); if($obj->Updated->format('Y') != gmdate('Y')){ $obj->UpdatedString = $obj->Updated->format('M j, Y'); } @@ -322,6 +323,7 @@ class Library{ } $obj->UpdatedString = $obj->Updated->format('M j'); + $obj->UpdatedString = preg_replace('/^(.+?)(?UpdatedString); if($obj->Updated->format('Y') != gmdate('Y')){ $obj->UpdatedString = $obj->Updated->format('M j, Y'); } diff --git a/www/bulk-downloads/index.php b/www/bulk-downloads/index.php index d9622a7a..ab96e9c6 100644 --- a/www/bulk-downloads/index.php +++ b/www/bulk-downloads/index.php @@ -22,7 +22,7 @@ try{ catch(Safe\Exceptions\ApcuException $ex){ $result = Library::RebuildBulkDownloadsCache(); $years = $result['years']; - $subjects = $result['subjectss']; + $subjects = $result['subjects']; } ?> 'Bulk Ebook Downloads', 'highlight' => '', 'description' => 'Download zip files containing all of the Standard Ebooks released in a given month.']) ?>