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.']) ?>