forked from Cavemanon/cavepaintings
consistency
git-svn-id: file:///home/shish/svn/shimmie2/trunk@312 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
class RSS_Comments extends Extension {
|
||||
// event handling {{{
|
||||
public function receive_event($event) {
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page == "index")) {
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "index")) {
|
||||
global $page;
|
||||
global $config;
|
||||
$title = $config->get_string('title');
|
||||
@@ -18,7 +18,7 @@ class RSS_Comments extends Extension {
|
||||
$page->add_header("<link rel=\"alternate\" type=\"application/rss+xml\" ".
|
||||
"title=\"$title - Comments\" href=\"".make_link("rss/comments")."\" />");
|
||||
}
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page == "rss")) {
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "rss")) {
|
||||
if($event->get_arg(0) == 'comments') {
|
||||
global $database;
|
||||
$this->do_rss($database);
|
||||
|
Reference in New Issue
Block a user