Update Session/Style for exceptions.
This commit is contained in:
parent
34846c45a6
commit
6863f66e12
1 changed files with 2 additions and 2 deletions
|
|
@ -269,9 +269,9 @@ if ($self->session->user->isRegistered || $self->session->setting->get("preventP
|
|||
$var{'head_attachments'} = $var{'head.tags'};
|
||||
$var{'head.tags'} .= ($var{'body_attachments'} = '<!--morebody-->');
|
||||
|
||||
my $style = WebGUI::Asset::Template->new($self->session,$templateId);
|
||||
my $style = eval { WebGUI::Asset::Template->new($self->session,$templateId); };
|
||||
my $output;
|
||||
if (defined $style) {
|
||||
if (! Exception::Class->caught()) {
|
||||
my $meta = {};
|
||||
if ($self->session->setting->get("metaDataEnabled")) {
|
||||
$meta = $style->getMetaDataFields();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue