weaken all session refs
This commit is contained in:
parent
387942e68d
commit
cc87552a22
20 changed files with 90 additions and 19 deletions
|
|
@ -15,7 +15,7 @@ package WebGUI::Asset;
|
|||
=cut
|
||||
|
||||
use Carp qw( croak confess );
|
||||
use Scalar::Util qw( blessed );
|
||||
use Scalar::Util qw( blessed weaken );
|
||||
use Clone qw(clone);
|
||||
use JSON;
|
||||
use HTML::Packer;
|
||||
|
|
@ -1826,6 +1826,7 @@ no revision date is available it will return undef.
|
|||
|
||||
sub new {
|
||||
my ( $class, $session, $assetId, $className, $revisionDate ) = @_;
|
||||
weaken( $session );
|
||||
|
||||
unless (defined $assetId) {
|
||||
$session->errorHandler->error("Asset constructor new() requires an assetId.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue