From 8a4524378c3fba35a10844b46be5d074185fdd00 Mon Sep 17 00:00:00 2001 From: shish <shish@7f39781d-f577-437e-ae19-be835c7a54ca> Date: Mon, 9 Jun 2008 11:21:44 +0000 Subject: [PATCH] well that was remarkably simple... git-svn-id: file:///home/shish/svn/shimmie2/trunk@894 7f39781d-f577-437e-ae19-be835c7a54ca --- contrib/random_image/main.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/random_image/main.php b/contrib/random_image/main.php index 5cf395b5..a9acde5b 100644 --- a/contrib/random_image/main.php +++ b/contrib/random_image/main.php @@ -29,6 +29,11 @@ class RandomImage extends Extension { $event->page->set_data(file_get_contents($image->get_image_filename())); } } + if($event->get_arg(0) == "view") { + if(!is_null($image)) { + send_event(new DisplayingImageEvent($image, $event->page)); + } + } } } }