[Xfce4-commits] [www/www.xfce.org] 01/01: Update the feed creation script to support paragraphs in arrays.
noreply at xfce.org
noreply at xfce.org
Sun May 21 22:26:20 CEST 2017
This is an automated email from the git hooks/post-receive script.
k n o m e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository www/www.xfce.org.
commit 8e29381682e570761ff66a48b364c02b76082295
Author: Pasi Lallinaho <pasi at shimmerproject.org>
Date: Sun May 21 23:25:30 2017 +0300
Update the feed creation script to support paragraphs in arrays.
---
pages/feed.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pages/feed.php b/pages/feed.php
index 043d14b..7f78243 100644
--- a/pages/feed.php
+++ b/pages/feed.php
@@ -49,6 +49,9 @@ foreach ($news as $item)
'<content:encoded><![CDATA[';
foreach ($item['paragraphs'] as $p)
+ if (is_array( $p ) )
+ foreach ( $p as $curp ) { echo '<p>'.fixup ($p).'</p>'; }
+ else
echo '<p>'.fixup ($p).'</p>';
echo ']]></content:encoded>'.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list