From 21e2409b9fb22351f320a658c7874dd41d0f824a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Sep 2018 16:18:49 +0200 Subject: Restore old author() functions for extension compatibility (#2030) Was breaking e.g. https://github.com/kevinpapst/freshrss-dilbert --- app/Models/Entry.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 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)) { -- cgit v1.2.3