Change prepareView to use around instead of override, so it can work with packages that also need to wrap prepareView.
This commit is contained in:
parent
3870aea526
commit
3faacabed2
1 changed files with 3 additions and 2 deletions
|
|
@ -479,10 +479,11 @@ Extend the master class to insert head links via addHeaderLinks.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
override prepareView => sub {
|
around prepareView => sub {
|
||||||
|
my $orig = shift;
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->addHeaderLinks;
|
$self->addHeaderLinks;
|
||||||
return super();
|
return $self->$orig;
|
||||||
};
|
};
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue