Image to Post - rss

This commit is contained in:
Matthew Barbour 2020-10-26 10:21:08 -05:00
parent 1520e6cfe3
commit badfaa6400
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ class RSSImagesInfo extends ExtensionInfo
public const KEY = "rss_images";
public $key = self::KEY;
public $name = "RSS for Images";
public $name = "RSS for Posts";
public $url = self::SHIMMIE_URL;
public $authors = self::SHISH_AUTHOR;
public $license = self::LICENSE_GPLV2;

View file

@ -11,10 +11,10 @@ class RSSImages extends Extension
if (count($event->search_terms) > 0) {
$search = url_escape(Tag::caret(Tag::implode($event->search_terms)));
$page->add_html_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 - Posts with tags: $search\" href=\"".make_link("rss/images/$search/1")."\" />");
} else {
$page->add_html_header("<link id=\"images\" rel=\"alternate\" type=\"application/rss+xml\" ".
"title=\"$title - Images\" href=\"".make_link("rss/images/1")."\" />");
"title=\"$title - Posts\" href=\"".make_link("rss/images/1")."\" />");
}
}