From 7f752180bfb42ce256344fbb7d1bb2c8423c61d2 Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 6 Feb 2008 17:33:08 +0000 Subject: [PATCH] various minor bugs showed up in debug mode git-svn-id: file:///home/shish/svn/shimmie2/trunk@715 7f39781d-f577-437e-ae19-be835c7a54ca --- core/image.class.php | 4 ++++ ext/tag_edit/theme.php | 1 + ext/view/main.php | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/image.class.php b/core/image.class.php index fea1df60..7206b347 100644 --- a/core/image.class.php +++ b/core/image.class.php @@ -91,6 +91,10 @@ class Image { return $this->ext; } + public function get_source() { + return $this->source; + } + public function parse_link_template($tmpl, $_escape="url_escape") { global $config; diff --git a/ext/tag_edit/theme.php b/ext/tag_edit/theme.php index b835ca7f..1725048d 100644 --- a/ext/tag_edit/theme.php +++ b/ext/tag_edit/theme.php @@ -25,6 +25,7 @@ class TagEditTheme extends Themelet { global $config; if($config->get_bool("tag_edit_anon") || !$user->is_anonymous()) { $h_tags = html_escape($image->get_tag_list()); + $h_source = html_escape($image->get_source()); $i_image_id = int_escape($image->id); $source_edit = ""; diff --git a/ext/view/main.php b/ext/view/main.php index 154b9d8b..8f66f92b 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -55,7 +55,8 @@ class ViewImage extends Extension { } if(is_a($event, 'DisplayingImageEvent')) { - $iibbe = new ImageInfoBoxBuildingEvent($event->get_image(), $event->user); + global $user; + $iibbe = new ImageInfoBoxBuildingEvent($event->get_image(), $user); send_event($iibbe); ksort($iibbe->parts); $this->theme->display_page($event->page, $event->get_image(), $iibbe->parts);