backport
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@1104 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
16f6df8e79
commit
e85ec99c27
@ -17,11 +17,11 @@ class RSS_Images extends Extension {
|
|||||||
|
|
||||||
if(count($event->search_terms) > 0) {
|
if(count($event->search_terms) > 0) {
|
||||||
$search = implode(' ', $event->search_terms);
|
$search = implode(' ', $event->search_terms);
|
||||||
$page->add_header("<link rel=\"alternate\" type=\"application/rss+xml\" ".
|
$page->add_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
|
||||||
"title=\"$title - Images with tags: $search\" href=\"".make_link("rss/images/$search/1")."\" />");
|
"title=\"$title - Images with tags: $search\" href=\"".make_link("rss/images/$search/1")."\" />");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$page->add_header("<link rel=\"alternate\" type=\"application/rss+xml\" ".
|
$page->add_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
|
||||||
"title=\"$title - Images\" href=\"".make_link("rss/images/1")."\" />");
|
"title=\"$title - Images\" href=\"".make_link("rss/images/1")."\" />");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class RSS_Images extends Extension {
|
|||||||
|
|
||||||
$version = VERSION;
|
$version = VERSION;
|
||||||
$xml = "<"."?xml version=\"1.0\" encoding=\"utf-8\" ?".">
|
$xml = "<"."?xml version=\"1.0\" encoding=\"utf-8\" ?".">
|
||||||
<rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss\">
|
<rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss\" xmlns:atom=\"http://www.w3.org/2005/Atom\">
|
||||||
<channel>
|
<channel>
|
||||||
<title>$title</title>
|
<title>$title</title>
|
||||||
<description>The latest uploads to the image board</description>
|
<description>The latest uploads to the image board</description>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user