reduce image's domain
git-svn-id: file:///home/shish/svn/shimmie2/trunk@136 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
574583bb48
commit
28b0431922
1 changed files with 6 additions and 2 deletions
|
@ -7,10 +7,14 @@ class ImageIO extends Extension {
|
|||
// event handling {{{
|
||||
public function receive_event($event) {
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page == "image")) {
|
||||
$this->send_file($event->get_arg(0), "image");
|
||||
if(is_numeric($event->get_arg(0))) {
|
||||
$this->send_file($event->get_arg(0), "image");
|
||||
}
|
||||
}
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page == "thumb")) {
|
||||
$this->send_file($event->get_arg(0), "thumb");
|
||||
if(is_numeric($event->get_arg(0))) {
|
||||
$this->send_file($event->get_arg(0), "thumb");
|
||||
}
|
||||
}
|
||||
|
||||
if(is_a($event, 'UploadingImageEvent')) {
|
||||
|
|
Reference in a new issue