From 47350899b24fb9a79bd9f57bcabc7281b9a01e34 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 23 May 2016 15:28:07 +0200 Subject: [PATCH] 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. --- rss_converter_dilbert.com.xsl | 2 +- rss_converter_instagram.com.xsl | 2 +- rss_converter_twitter.com.xsl | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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)"/> -- 2.1.4