version 1.49, 2013/05/10 23:41:32
|
version 1.51, 2013/09/22 15:56:24
|
Line 116 sub print_template {
|
Line 116 sub print_template {
|
|
|
sub print_start_template { |
sub print_start_template { |
my ($r,$topic,$boxclass,$id,$display) = @_; |
my ($r,$topic,$boxclass,$id,$display) = @_; |
my $idattrib; |
my $idattrib; |
if ($id ne '') { |
if ($id ne '') { |
$idattrib = ' id="'.$id.'"'; |
$idattrib = ' id="'.$id.'"'; |
} |
} |
Line 170 sub print_template_fields {
|
Line 170 sub print_template_fields {
|
unless ($allowed) { |
unless ($allowed) { |
next if ($noshow{$field}); |
next if ($noshow{$field}); |
} |
} |
my $gateway = Apache::lonhtmlgateway->new($target); |
my $gateway = Apache::lonhtmlgateway->new($target); |
$message = &Encode::decode('utf8', $message); |
$message = &Encode::decode('utf8', $message); |
$message = $gateway->process_outgoing_html($message, $legacy); |
$message = $gateway->process_outgoing_html($message, $legacy); |
if ((%custom_handlers) && ($custom_handlers{$field})) { |
if ((%custom_handlers) && ($custom_handlers{$field})) { |
$custom_handlers{$field}->($r, $field, $message, $group, $data_ref, $fields_ref, $target, $allowed, $display); |
$custom_handlers{$field}->($r, $field, $message, $group, $data_ref, $fields_ref, $target, $allowed, $display); |
} else { |
} else { |
if (($data{$field}=~/\w/) || ($allowed)) { |
if (($data{$field}=~/\w/) || ($allowed)) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |