Changed AssetProxy macro's error handling
This commit is contained in:
parent
075c02221f
commit
65a6de8038
1 changed files with 9 additions and 2 deletions
|
|
@ -62,8 +62,15 @@ sub process {
|
|||
return undef;
|
||||
}
|
||||
else {
|
||||
my $i18n = WebGUI::International->new($session, 'Macro_AssetProxy');
|
||||
return $i18n->get('invalid url');
|
||||
$session->errorHandler->warn('AssetProxy macro called invalid asset: '.$identifier
|
||||
.'. The macro was called through this url: '.$session->asset->get('url'));
|
||||
if ($session->var->get("adminOn")){
|
||||
my $i18n = WebGUI::International->new($session, 'Macro_AssetProxy');
|
||||
return $i18n->get('invalid url');
|
||||
}
|
||||
else{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue