From e8d9523ba8d129773a1f410227b8f626a53d21ed Mon Sep 17 00:00:00 2001 From: shish Date: Tue, 10 Jul 2007 19:42:03 +0000 Subject: [PATCH] send page along with image git-svn-id: file:///home/shish/svn/shimmie2/trunk@252 7f39781d-f577-437e-ae19-be835c7a54ca --- core/events/displayingimage.event.php | 4 +++- core/ext/view.ext.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/events/displayingimage.event.php b/core/events/displayingimage.event.php index bdf1f99f..030dc56d 100644 --- a/core/events/displayingimage.event.php +++ b/core/events/displayingimage.event.php @@ -9,9 +9,11 @@ */ class DisplayingImageEvent extends Event { var $image; + var $page; - public function DisplayingImageEvent($image) { + public function DisplayingImageEvent($image, $page) { $this->image = $image; + $this->page = $page; } public function get_image() { diff --git a/core/ext/view.ext.php b/core/ext/view.ext.php index 9c9548bc..d17855af 100644 --- a/core/ext/view.ext.php +++ b/core/ext/view.ext.php @@ -10,7 +10,7 @@ class ViewImage extends Extension { $image = $database->get_image($image_id); if(!is_null($image)) { - send_event(new DisplayingImageEvent($image)); + send_event(new DisplayingImageEvent($image, $event->page)); } else { global $page;