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