bugfix: more debug output when style cannot instance your template

This commit is contained in:
Colin Kuskie 2008-06-11 02:38:34 +00:00
parent 70c00b8a24
commit fba93ebcbe
2 changed files with 2 additions and 1 deletions

View file

@ -103,6 +103,7 @@
Search
- added: A thumbnail for Photo edit screen
- added: Configure the amount of files shown per page in the Gallery
- fix: Patch for Style.pm to identify which template failed to instantiate
7.5.10
- fix: Syntax error in GetCsMail

View file

@ -208,7 +208,7 @@ if ($self->session->user->isInGroup(2) || $self->session->setting->get("preventP
}
$output = $style->process(\%var);
} else {
$output = "WebGUI was unable to instantiate your style template.".$var{'body.content'};
$output = sprintf "WebGUI was unable to instantiate your style template with the id: %s.%s", $templateId, $var{'body.content'};
}
WebGUI::Macro::process($self->session,\$output);
$self->sent(1);