A free, self-hostable news aggregator…
Restore old author() functions for extension compatibility (#2030)
Alexandre Alapetite21e2409b9fb2
diff --git a/app/Models/Entry.php b/app/Models/Entry.phpindex 09c5d8bcf..985276734 100644--- a/app/Models/Entry.php+++ b/app/Models/Entry.php@@ -44,6 +44,10 @@ class FreshRSS_Entry extends Minz_Model {public function title() {return $this->title;}+ public function author() {+ //Deprecated+ return $this->authors(true);+ }public function authors($asString = false) {if ($asString) {return $this->authors == null ? '' : ';' . implode('; ', $this->authors);@@ -129,6 +133,10 @@ class FreshRSS_Entry extends Minz_Model {$this->hash = null;$this->title = $value;}+ public function _author($value) {+ //Deprecated+ $this->_authors($value);+ }public function _authors($value) {$this->hash = null;if (!is_array($value)) {