rss: add guid element for each item

Work on https://github.com/sebsauvage/MinigalNano/issues/48
This commit is contained in:
nodiscc 2014-12-22 08:02:23 +01:00 committed by Lucas Cimon
parent 65c0ce6233
commit 6f32ce1202

View file

@ -165,6 +165,7 @@ for ($i=0; $i < $nb_items_rss && $i < count($temp); $i++) {
echo "<item>\n"; echo "<item>\n";
echo " <title>" . basename($temp[$i]) . "</title>\n"; echo " <title>" . basename($temp[$i]) . "</title>\n";
echo " <link>". $temp[$i] . "</link>\n"; echo " <link>". $temp[$i] . "</link>\n";
echo " <guid>". $temp[$i] . "</guid>\n";
echo " <description><![CDATA[ <img src='" . $temp[$i] . "'> ]]></description>\n"; echo " <description><![CDATA[ <img src='" . $temp[$i] . "'> ]]></description>\n";
echo "</item>\n"; echo "</item>\n";
} }