diff options
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Syndication')
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Rss20.php | 2 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Rss20.php b/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Rss20.php index efb2dd489..69d6a2114 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Rss20.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Rss20.php @@ -70,7 +70,7 @@ class Rss20 extends Writer // <description/> $description = $this->dom->createElement('description'); - $description->appendChild($this->dom->createTextNode(isset($this->description) ? $this->description : $this->title)); + $description->appendChild($this->dom->createTextNode($this->description ?: $this->title)); $channel->appendChild($description); // <pubDate/> diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php b/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php index 3b4557dad..cbd35f2cf 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Syndication/Writer.php @@ -9,7 +9,6 @@ use RuntimeException; * * @author Frederic Guillot * @package Syndication - * @property string $description Feed description */ abstract class Writer { @@ -62,6 +61,14 @@ abstract class Writer public $title = ''; /** + * Feed description + * + * @access public + * @var string + */ + public $description = ''; + + /** * Feed modification date (timestamp) * * @access public |