diff --git a/lib/AtomFeed.php b/lib/AtomFeed.php
index b83910d5..534efb52 100644
--- a/lib/AtomFeed.php
+++ b/lib/AtomFeed.php
@@ -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{
diff --git a/lib/Ebook.php b/lib/Ebook.php
index ca083a0d..d7e6ddf4 100644
--- a/lib/Ebook.php
+++ b/lib/Ebook.php
@@ -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
diff --git a/scripts/generate-feeds b/scripts/generate-feeds
index fa04bf38..8dab2ea6 100755
--- a/scripts/generate-feeds
+++ b/scripts/generate-feeds
@@ -57,7 +57,7 @@ foreach($contentFiles as $path){
$ebook = new Ebook($ebookWwwFilesystemPath);
- $allEbooks[$ebook->Modified->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook;
+ $allEbooks[$ebook->Updated->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook;
$newestEbooks[$ebook->Created->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook;
foreach($ebook->Tags as $tag){
diff --git a/templates/AtomFeedEntry.php b/templates/AtomFeedEntry.php
index 397571a9..969dfdbf 100644
--- a/templates/AtomFeedEntry.php
+++ b/templates/AtomFeedEntry.php
@@ -8,7 +8,7 @@
} ?>