We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5a239a + 61fbcb2 commit 5d295b0Copy full SHA for 5d295b0
1 file changed
rss.php
@@ -152,7 +152,9 @@ function print_array($array_to_display)
152
/*===================*/
153
/* XML Gen */
154
155
+header('Content-Type: text/xml');
156
$temp = explode("\n", $content);
157
+echo "<?xml version='1.0' encoding='UTF-8 '?>\n";
158
echo "<rss version='2.0'>\n<channel>";
159
echo "<title>$title</title>";
160
echo "<link>$gallery_link</link>";
@@ -163,6 +165,7 @@ function print_array($array_to_display)
163
165
echo "<item>\n";
164
166
echo " <title>" . basename($temp[$i]) . "</title>\n";
167
echo " <link>". $temp[$i] . "</link>\n";
168
+ echo " <guid>". $temp[$i] . "</guid>\n";
169
echo " <description><![CDATA[ <img src='" . $temp[$i] . "'> ]]></description>\n";
170
echo "</item>\n";
171
}
0 commit comments