X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7647d46acbc2a8253c0afeac5c706c3eb76995d5..f3978ea1c30d283b9d46be0766a33c568ade511c:/SL/Controller/Base.pm?ds=inline diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index aa65645ae..01e2db4f0 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -80,6 +80,7 @@ sub render { croak "Unsupported type: " . $options->{type} unless $options->{type} =~ m/^(?:html|js|json)$/; # The "template" argument must be a string or a reference to one. + $template = ${ $template } if ((ref($template) || '') eq 'REF') && (ref(${ $template }) eq 'SL::Presenter::EscapedText'); croak "Unsupported 'template' reference type: " . ref($template) if ref($template) && (ref($template) !~ m/^(?:SCALAR|SL::Presenter::EscapedText)$/); # If all output is turned off then don't output the header either.