diff options
| author | 2018-09-23 16:18:49 +0200 | |
|---|---|---|
| committer | 2018-09-23 16:18:49 +0200 | |
| commit | 21e2409b9fb22351f320a658c7874dd41d0f824a (patch) | |
| tree | 6ca61b4bfeb2e1d9e60b8a82d53462277dc74c7f /app/Models/Entry.php | |
| parent | cfd376352e9bd25858c6c2adaf3a4f9e9809f273 (diff) | |
Restore old author() functions for extension compatibility (#2030)
Was breaking e.g. https://github.com/kevinpapst/freshrss-dilbert
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 8 |
1 files changed, 8 insertions, 0 deletions
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)) { |
