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;