View | Details | Raw Unified | Return to bug 34728
Collapse All | Expand All

(-)a/misc/cronjobs/gather_print_notices.pl (-5 / +2 lines)
Lines 214-223 sub generate_html { Link Here
214
      C4::Templates::gettemplate( 'batch/print-notices.tt', 'intranet',
214
      C4::Templates::gettemplate( 'batch/print-notices.tt', 'intranet',
215
        CGI->new );
215
        CGI->new );
216
216
217
    foreach my $message (@{ $messages }) {
217
    foreach my $message (@$messages) {
218
        my $content_type = $message->{'content_type'} || 'text/plain; charset="UTF-8"';
218
        $message->{is_html} = $message->{content_type} && $message->{content_type} =~ /html/i;
219
        my $is_html      = $content_type =~ m/html/io;
220
        $message->{'is_html'} = $is_html;
221
    }
219
    }
222
220
223
    $template->param(
221
    $template->param(
224
- 

Return to bug 34728