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:
shish
2008-10-09 03:21:18 +00:00
parent 8eef694168
commit 072b22ee8f
14 changed files with 97 additions and 102 deletions

View File

@ -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));
}
}
}