various minor bugs showed up in debug mode

git-svn-id: file:///home/shish/svn/shimmie2/trunk@715 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-02-06 17:33:08 +00:00
parent fb62229634
commit 7f752180bf
3 changed files with 7 additions and 1 deletions

View File

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

View File

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

View File

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