Skip to content

Commit

Permalink
fix FilePump/Bundle test
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Jun 15, 2010
1 parent cfae9b7 commit d5744ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/WebGUI/FilePump/Bundle.pm
Expand Up @@ -6,6 +6,7 @@ use WebGUI::Asset;
use WebGUI::International;
use WebGUI::Exception;
use WebGUI::Utility;
use WebGUI::Macro;
use URI;
use Path::Class;
use File::Basename;
Expand Down Expand Up @@ -518,7 +519,8 @@ sub fetchAsset {
content => '',
};
if ($asset->isa('WebGUI::Asset::Snippet')) {
$guts->{content} = $asset->view(1);
$guts->{content} = $asset->snippet;
WebGUI::Macro::process($self->session, \( $guts->{content} ) );
}
elsif ($asset->isa('WebGUI::Asset::File')) {
$guts->{content} = $asset->getStorageLocation->getFileContentsAsScalar($asset->get('filename'));
Expand Down

0 comments on commit d5744ac

Please sign in to comment.