more bug fixes
This commit is contained in:
parent
09abb2d440
commit
9238c028c6
8 changed files with 37 additions and 14 deletions
|
|
@ -20,7 +20,8 @@ sub process {
|
|||
my ($url) = WebGUI::Macro::getParams(shift);
|
||||
my $asset = WebGUI::Asset->newByUrl($url);
|
||||
if (defined $asset) {
|
||||
return $asset->canView ? $asset->view : "";
|
||||
$asset->toggleToolbar if ($asset->get("className") =~ /WebGUI::Asset::File/ || $asset->get("className") =~ /WebGUI::Asset::Snippet/ );
|
||||
return $asset->canView ? $asset->view : undef;
|
||||
} else {
|
||||
return "Invalid Asset URL";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue