Remove all unnecessary usage of SUPER from Assets
This commit is contained in:
parent
c2baef0bde
commit
5f9f1e6dec
46 changed files with 175 additions and 171 deletions
|
|
@ -137,9 +137,9 @@ and to put children in their places.
|
|||
|
||||
=cut
|
||||
|
||||
sub prepareView {
|
||||
override prepareView => sub {
|
||||
my $self = shift;
|
||||
$self->SUPER::prepareView;
|
||||
super();
|
||||
my $session = $self->session;
|
||||
my $templateId;
|
||||
|
||||
|
|
@ -263,7 +263,7 @@ sub prepareView {
|
|||
|
||||
$self->{_viewVars} = \%vars;
|
||||
$self->{_viewPlaceholder} = \%placeHolder;
|
||||
}
|
||||
};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
@ -369,9 +369,9 @@ Extend the base class to include the userid of the person that made last modific
|
|||
|
||||
=cut
|
||||
|
||||
sub getContentLastModifiedBy {
|
||||
override getContentLastModifiedBy => sub {
|
||||
my $self = shift;
|
||||
my $mtime = $self->SUPER::getContentLastModified;
|
||||
my $mtime = super();
|
||||
my $userId = $self->get('revisedBy');
|
||||
my $childIter = $self->getLineageIterator(["children"],{excludeClasses=>['WebGUI::Asset::Wobject::Layout']});
|
||||
while ( 1 ) {
|
||||
|
|
@ -389,7 +389,7 @@ sub getContentLastModifiedBy {
|
|||
}
|
||||
}
|
||||
return $userId;
|
||||
}
|
||||
};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue