reordering template opening

This commit is contained in:
tipaul 2006-04-04 14:07:33 +00:00
parent fb982c15be
commit d6906b2f0d
1 changed files with 11 additions and 14 deletions

View File

@ -28,24 +28,21 @@ my ($template, $borrowernumber, $cookie);
my $dbh = C4::Context->dbh;
if (C4::Context->preference("AnonSuggestions")) {
($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "opac-suggestions.tmpl",
query => $input,
type => "opac",
authnotrequired => 1,
});
($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "opac-suggestions.tmpl",
query => $input,
type => "opac",
authnotrequired => 1,
});
if (!$borrowernumber) {
$borrowernumber = C4::Context->preference("AnonSuggestions");
}
} else {
($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "opac-suggestions.tmpl",
query => $input,
type => "opac",
authnotrequired => 1,
($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => "opac-suggestions.tmpl",
query => $input,
type => "opac",
authnotrequired => 1,
});
}