|
Lines 48-54
my $query = CGI->new;
Link Here
|
| 48 |
our $params = $query->Vars(); |
48 |
our $params = $query->Vars(); |
| 49 |
|
49 |
|
| 50 |
# if illrequests is disabled, leave immediately |
50 |
# if illrequests is disabled, leave immediately |
| 51 |
if ( !C4::Context->preference('ILLModule') ) { |
51 |
my $opac_backends = Koha::ILL::Request::Config->new->opac_available_backends(); |
|
|
52 |
if ( !C4::Context->preference('ILLModule') |
| 53 |
|| ( $params->{backend} && !grep { $_ eq $params->{backend} } @$opac_backends ) ) |
| 54 |
{ |
| 52 |
print $query->redirect("/cgi-bin/koha/errors/404.pl"); |
55 |
print $query->redirect("/cgi-bin/koha/errors/404.pl"); |
| 53 |
exit; |
56 |
exit; |
| 54 |
} |
57 |
} |
| 55 |
- |
|
|