forked from Cavemanon/cavepaintings
Image code moved to image class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1058 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -27,12 +27,13 @@ class RSS_Images implements Extension {
|
||||
|
||||
if(($event instanceof PageRequestEvent) && $event->page_matches("rss")) {
|
||||
if($event->get_arg(0) == 'images') {
|
||||
global $config;
|
||||
global $database;
|
||||
if($event->count_args() >= 2) {
|
||||
$this->do_rss($database->get_images(0, 12, tag_explode($event->get_arg(1))));
|
||||
$this->do_rss(Image::find_images($config, $database, 0, 12, tag_explode($event->get_arg(1))));
|
||||
}
|
||||
else {
|
||||
$this->do_rss($database->get_images(0, 12));
|
||||
$this->do_rss(image::find_images($config, $database, 0, 12));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user