refactored storage api to handle new session stuff
This commit is contained in:
parent
02c5a65857
commit
1e5034acd6
11 changed files with 84 additions and 45 deletions
|
|
@ -44,7 +44,7 @@ sub process {
|
|||
my $url = shift;
|
||||
my $asset = WebGUI::Asset->newByUrl($session,$url);
|
||||
if (defined $asset) {
|
||||
my $storage = WebGUI::Storage->get($asset->get("storageId"));
|
||||
my $storage = WebGUI::Storage->get($session,$asset->get("storageId"));
|
||||
return $storage->getUrl($asset->get("filename"));
|
||||
} else {
|
||||
my $i18n = WebGUI::International->new($session, 'Macro_FileUrl');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue