more conversion to the new streaming/chunking/bucketing system
This commit is contained in:
parent
46fa7e78e7
commit
6c4ae02f34
15 changed files with 219 additions and 43 deletions
|
|
@ -45,8 +45,12 @@ sub process {
|
|||
my $randomAssetId = $children->[rand(scalar(@{$children}))];
|
||||
my $randomAsset = WebGUI::Asset->newByDynamicClass($session,$randomAssetId);
|
||||
if (defined $randomAsset) {
|
||||
$randomAsset->toggleToolbar;
|
||||
return $randomAsset->canView ? $randomAsset->view() : undef;
|
||||
if ($randomAsset->canView) {
|
||||
$randomAsset->toggleToolbar;
|
||||
$randomAsset->prepareView;
|
||||
return $randomAsset->view;
|
||||
}
|
||||
return undef;
|
||||
} else {
|
||||
return $i18n->get('childless');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue