From fba93ebcbefc67ca7342af96ce4bef4e016864a2 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 11 Jun 2008 02:38:34 +0000 Subject: [PATCH] bugfix: more debug output when style cannot instance your template --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Session/Style.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 848d5b383..c4cb6fdab 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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 diff --git a/lib/WebGUI/Session/Style.pm b/lib/WebGUI/Session/Style.pm index 28e8bb641..0135f0bc3 100644 --- a/lib/WebGUI/Session/Style.pm +++ b/lib/WebGUI/Session/Style.pm @@ -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);