mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Change 'modified' property to 'updated' for consistency
This commit is contained in:
parent
32206f3cd7
commit
c2cf6ef455
6 changed files with 7 additions and 7 deletions
|
@ -47,7 +47,7 @@ class AtomFeed extends Feed{
|
|||
foreach($this->Entries as $entry){
|
||||
$obj = new StdClass();
|
||||
if(is_a($entry, 'Ebook')){
|
||||
$obj->Updated = $entry->Modified->format('Y-m-d\TH:i:s\Z');
|
||||
$obj->Updated = $entry->Updated->format('Y-m-d\TH:i:s\Z');
|
||||
$obj->Id = SITE_URL . $entry->Url;
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -54,7 +54,7 @@ class Ebook{
|
|||
public $ContributorsHtml;
|
||||
public $TitleWithCreditsHtml = '';
|
||||
public $Created;
|
||||
public $Modified;
|
||||
public $Updated;
|
||||
public $TextUrl;
|
||||
public $TextSinglePageUrl;
|
||||
public $TocEntries = null; // A list of non-Roman ToC entries ONLY IF the work has the 'se:is-a-collection' metadata element, null otherwise
|
||||
|
@ -191,7 +191,7 @@ class Ebook{
|
|||
|
||||
$modifiedDate = $xml->xpath('/package/metadata/meta[@property="dcterms:modified"]');
|
||||
if($modifiedDate !== false && sizeof($modifiedDate) > 0){
|
||||
$this->Modified = new DateTime((string)$modifiedDate[0]);
|
||||
$this->Updated = new DateTime((string)$modifiedDate[0]);
|
||||
}
|
||||
|
||||
// Get SE tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue