From: Antonio Ospite Date: Mon, 23 May 2016 13:28:07 +0000 (+0200) Subject: Use php:functionString() in the stylesheets where appropriate X-Git-Tag: v0.6~5 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/47350899b24fb9a79bd9f57bcabc7281b9a01e34?ds=inline Use php:functionString() in the stylesheets where appropriate Instead of converting to string in XSL and then calling php:function(), use directly php:functionString() when calling PHP functions which actually expect a string argument. Besides possible performance improvements, this is done mainly for readability. --- diff --git a/rss_converter_dilbert.com.xsl b/rss_converter_dilbert.com.xsl index 85f6648..b6d1975 100644 --- a/rss_converter_dilbert.com.xsl +++ b/rss_converter_dilbert.com.xsl @@ -75,7 +75,7 @@ ]]> - + diff --git a/rss_converter_instagram.com.xsl b/rss_converter_instagram.com.xsl index 84fbd81..3efba4d 100644 --- a/rss_converter_instagram.com.xsl +++ b/rss_converter_instagram.com.xsl @@ -89,7 +89,7 @@ ]]> - + diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index 857cf31..c154141 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -104,11 +104,11 @@ - + - + @@ -133,7 +133,7 @@ --> + select="php:functionString('preg_replace', '@((?<!\()(?:http[s]?://|pic.twitter.com))@', ' \1', $item-content)"/>