From b7350069c36900359b8f26c6e9794f614a40b20e Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 18 May 2016 22:32:06 +0200 Subject: [PATCH] Return a DOMElement instead of a string in Tweeper::generateEnclosure() This make the generated XML have proper indentation in case the element gets added. --- rss_converter_instagram.com.xsl | 2 +- rss_converter_twitter.com.xsl | 2 +- tweeper.php | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rss_converter_instagram.com.xsl b/rss_converter_instagram.com.xsl index 5a64a57..f12ecbb 100644 --- a/rss_converter_instagram.com.xsl +++ b/rss_converter_instagram.com.xsl @@ -33,7 +33,7 @@ - + diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index 0701d5c..6ef86dd 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -33,7 +33,7 @@ - + diff --git a/tweeper.php b/tweeper.php index d84094e..579aae1 100644 --- a/tweeper.php +++ b/tweeper.php @@ -156,9 +156,7 @@ class Tweeper { $enc->setAttribute('length', $url_info['download_content_length']); $enc->setAttribute('type', $url_info['content_type']); - $dom->appendChild($enc); - - return $dom->saveXML($enc); + return $enc; } /** -- 2.1.4