send page along with image

git-svn-id: file:///home/shish/svn/shimmie2/trunk@252 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-10 19:42:03 +00:00
parent f459de3176
commit e8d9523ba8
2 changed files with 4 additions and 2 deletions

View file

@ -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() {

View file

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