View | Details | Raw Unified | Return to bug 12703
Collapse All | Expand All

(-)a/opac/opac-privacy.pl (-1 / +7 lines)
Lines 27-32 use C4::Output; Link Here
27
use C4::Dates;
27
use C4::Dates;
28
28
29
my $query = new CGI;
29
my $query = new CGI;
30
31
# if OPACPrivacy is disabled, leave immediately
32
if ( ! C4::Context->preference('OPACPrivacy') || ! C4::Context->preference('opacreadinghistory') ) {
33
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
34
    exit;
35
}
36
30
my $dbh   = C4::Context->dbh;
37
my $dbh   = C4::Context->dbh;
31
38
32
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
39
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
33
- 

Return to bug 12703