fixed Gallery Cross Publish not displaying correctly

This commit is contained in:
Doug Bell 2008-08-13 20:56:04 +00:00
parent 7aca0d15f8
commit e141a01d31
4 changed files with 10 additions and 8 deletions

View file

@ -162,7 +162,10 @@ sub addChild {
# Load the class
WebGUI::Pluggable::load( $properties->{className} );
if ( !$properties->{className}->isa( $fileClass ) ) {
# Make sure we only add appropriate child classes
if ( !$properties->{className}->isa( $fileClass )
&& !$properties->{ className }->isa( "WebGUI::Asset::Shortcut" )
) {
$self->session->errorHandler->security(
"add a ".$properties->{className}." to a ".$self->get("className")
);
@ -589,6 +592,9 @@ sub getThumbnailUrl {
if ( $asset->can("getThumbnailUrl") ) {
return $asset->getThumbnailUrl;
}
elsif ( $asset->isa( "WebGUI::Asset::Shortcut" ) ) {
return $asset->getShortcut->getThumbnailUrl;
}
else {
return undef;
}