mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Abbreviate months in bulk download page
This commit is contained in:
parent
139ae6e918
commit
d086ea59bd
2 changed files with 3 additions and 1 deletions
|
@ -263,6 +263,7 @@ class Library{
|
|||
}
|
||||
|
||||
$obj->UpdatedString = $obj->Updated->format('M j');
|
||||
$obj->UpdatedString = preg_replace('/^(.+?)(?<!May) /', '\1. ', $obj->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('/^(.+?)(?<!May) /', '\1. ', $obj->UpdatedString);
|
||||
if($obj->Updated->format('Y') != gmdate('Y')){
|
||||
$obj->UpdatedString = $obj->Updated->format('M j, Y');
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ try{
|
|||
catch(Safe\Exceptions\ApcuException $ex){
|
||||
$result = Library::RebuildBulkDownloadsCache();
|
||||
$years = $result['years'];
|
||||
$subjects = $result['subjectss'];
|
||||
$subjects = $result['subjects'];
|
||||
}
|
||||
|
||||
?><?= Template::Header(['title' => 'Bulk Ebook Downloads', 'highlight' => '', 'description' => 'Download zip files containing all of the Standard Ebooks released in a given month.']) ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue