Remove a template attachment in the Search namespace. Add tests to check all other template attachments. Fixes bug #12238.

This commit is contained in:
Colin Kuskie 2011-08-28 17:28:47 -07:00
parent d40048437c
commit 7a89bf19c7
5 changed files with 85 additions and 2 deletions

View file

@ -646,15 +646,15 @@ sub prepare {
$style->setRawHeadTags($headBlock);
my %props = ( type => 'text/css', rel => 'stylesheet' );
foreach my $sheet ( @{ $self->getAttachments('stylesheet') } ) {
my %props = ( type => 'text/css', rel => 'stylesheet' );
$style->setLink($sheet->{url}, \%props);
}
my $doScripts = sub {
my ($type, $body) = @_;
my %props = ( type => 'text/javascript' );
foreach my $script ( @{ $self->getAttachments($type) } ) {
my %props = ( type => 'text/javascript' );
$style->setScript($script->{url}, \%props, $body);
}
};