aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-27 23:49:51 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-27 23:49:51 +0100
commit7f6eb66405b4c4429fb7c22082a958646c6ef05c (patch)
tree9cd1562f4b53c18495a708727db7d8999a9b30e2 /app
parent4355d8447f8e9073f4d96a35b280bad5ba793e32 (diff)
Suite de e.id en bigint
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/202
Diffstat (limited to 'app')
-rwxr-xr-xapp/models/Entry.php8
-rw-r--r--app/models/Feed.php2
2 files changed, 9 insertions, 1 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php
index c5ff6ab60..636e67e75 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -57,6 +57,14 @@ class Entry extends Model {
return timestamptodate ($this->date);
}
}
+ public function dateAdded ($raw = false) {
+ $date = intval(substr($this->id, 0, -6));
+ if ($raw) {
+ return $date;
+ } else {
+ return timestamptodate ($date);
+ }
+ }
public function isRead () {
return $this->is_read;
}
diff --git a/app/models/Feed.php b/app/models/Feed.php
index d1d85d838..8927551d6 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -310,7 +310,7 @@ class Feed extends Model {
// permet de récupérer le contenu des flux tronqués
$entry->loadCompleteContent($this->pathEntries());
- $entries[$entry->id ()] = $entry;
+ $entries[] = $entry;
}
$this->entries = $entries;