fixed a bunch of GalleryAlbum/Photo tests
This commit is contained in:
parent
6dfe05b119
commit
af271b9f26
13 changed files with 225 additions and 248 deletions
|
|
@ -185,10 +185,10 @@ attached to the session.
|
|||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
my $user = shift || $session->user;
|
||||
my $self = register($class);
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
my $user = shift || $session->user;
|
||||
my $self = register($class);
|
||||
$session{id $self} = $session;
|
||||
$user{id $self} = $user;
|
||||
return $self;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue