Remove deprecated code, overriding update in Template.pm
This commit is contained in:
parent
4a240ba0e0
commit
2f8aff55e2
1 changed files with 0 additions and 24 deletions
|
|
@ -757,30 +757,6 @@ sub removeAttachments {
|
||||||
$db->write($rmsql, \@params);
|
$db->write($rmsql, \@params);
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 update
|
|
||||||
|
|
||||||
Override update from Asset.pm to handle backwards compatibility with the old
|
|
||||||
packages that contain headBlocks. This will be removed in the future. Don't plan
|
|
||||||
on this being here.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub update {
|
|
||||||
my $self = shift;
|
|
||||||
my $requestedProperties = shift;
|
|
||||||
my $properties = clone($requestedProperties);
|
|
||||||
|
|
||||||
if (exists $properties->{headBlock}) {
|
|
||||||
$properties->{extraHeadTags} .= $properties->{headBlock};
|
|
||||||
delete $properties->{headBlock};
|
|
||||||
}
|
|
||||||
|
|
||||||
$self->SUPER::update($properties);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 www_edit
|
=head2 www_edit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue