rss titles are now just file names and not complete files urls
This commit is contained in:
parent
29c1e2cfcb
commit
10cb4eb47e
2 changed files with 7 additions and 4 deletions
7
rss.php
7
rss.php
|
@ -106,7 +106,8 @@
|
|||
/*XML Gen*/
|
||||
/*===================*/
|
||||
$temp = explode("\n", $temp);
|
||||
|
||||
$pieceOfTitle;
|
||||
$titleLenght;
|
||||
echo "
|
||||
<rss version=\"2.0\">
|
||||
<channel>
|
||||
|
@ -115,9 +116,11 @@
|
|||
<description>".$description."</description>
|
||||
";
|
||||
for ($i=0; $i <= $nb_items_rss; $i++) {
|
||||
$pieceOfTitle = strrchr ($temp[$i] , "/");
|
||||
$titleLenght = strlen($pieceOfTitle) - strlen(strrchr($pieceOfTitle, "."));
|
||||
echo
|
||||
"<item>
|
||||
<title>" . $temp[$i] . "</title>
|
||||
<title>" . substr($pieceOfTitle, 1, $titleLenght-1) . "</title>
|
||||
<link>". $temp[$i] . "</link>
|
||||
<description>
|
||||
<![CDATA[ <img src=\"" . $temp[$i] . "\"> ]]>
|
||||
|
|
Loading…
Reference in a new issue