diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-09 11:44:09 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-09 11:44:09 +0100 |
commit | b9e330109b58fac55c3728dd3c543552fcabd353 (patch) | |
tree | 93d386ca453b4b90f517018eb63a4b64df22e8ba /vendor/fguillot/picofeed/lib/PicoFeed/Syndication | |
parent | e5d18a22c3c15acf61f97da4965a551b83df05cb (diff) |
update picofeed to 0.1.0
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 |