Bug 35904: (QA follow-up): tidy up code
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
a82772d7ec
commit
8fb9b814aa
1 changed files with 2 additions and 2 deletions
|
@ -791,7 +791,7 @@ sub checkauth {
|
|||
my $type = shift;
|
||||
my $emailaddress = shift;
|
||||
my $template_name = shift;
|
||||
my $params = shift || {}; # do_not_print
|
||||
my $params = shift || {}; # do_not_print
|
||||
$type = 'opac' unless $type;
|
||||
|
||||
if ( $type eq 'opac' && !C4::Context->preference("OpacPublic") ) {
|
||||
|
@ -1331,7 +1331,7 @@ sub checkauth {
|
|||
$uri->query_param_delete('password');
|
||||
$uri->query_param_delete('koha_login_context');
|
||||
unless ( $params->{do_not_print} ) {
|
||||
print $query->redirect(-uri => $uri->as_string, -cookie => $cookie, -status=>'303 See other');
|
||||
print $query->redirect( -uri => $uri->as_string, -cookie => $cookie, -status => '303 See other' );
|
||||
safe_exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue