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:
parent
fb62229634
commit
7f752180bf
@ -91,6 +91,10 @@ class Image {
|
|||||||
return $this->ext;
|
return $this->ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_source() {
|
||||||
|
return $this->source;
|
||||||
|
}
|
||||||
|
|
||||||
public function parse_link_template($tmpl, $_escape="url_escape") {
|
public function parse_link_template($tmpl, $_escape="url_escape") {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ class TagEditTheme extends Themelet {
|
|||||||
global $config;
|
global $config;
|
||||||
if($config->get_bool("tag_edit_anon") || !$user->is_anonymous()) {
|
if($config->get_bool("tag_edit_anon") || !$user->is_anonymous()) {
|
||||||
$h_tags = html_escape($image->get_tag_list());
|
$h_tags = html_escape($image->get_tag_list());
|
||||||
|
$h_source = html_escape($image->get_source());
|
||||||
$i_image_id = int_escape($image->id);
|
$i_image_id = int_escape($image->id);
|
||||||
|
|
||||||
$source_edit = "";
|
$source_edit = "";
|
||||||
|
@ -55,7 +55,8 @@ class ViewImage extends Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(is_a($event, 'DisplayingImageEvent')) {
|
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);
|
send_event($iibbe);
|
||||||
ksort($iibbe->parts);
|
ksort($iibbe->parts);
|
||||||
$this->theme->display_page($event->page, $event->get_image(), $iibbe->parts);
|
$this->theme->display_page($event->page, $event->get_image(), $iibbe->parts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user