Lines 34-40
my $biblionumber = $cgi->param('biblionumber') || 0;
Link Here
|
34 |
my $itemnumber = $cgi->param('itemnumber') || 0; |
34 |
my $itemnumber = $cgi->param('itemnumber') || 0; |
35 |
|
35 |
|
36 |
my $tracking_method = C4::Context->preference('TrackClicks'); |
36 |
my $tracking_method = C4::Context->preference('TrackClicks'); |
37 |
output_error( $cgi, '404' ) unless $tracking_method; |
37 |
unless ( $tracking_method ) { |
|
|
38 |
output_error( $cgi, '404' ); |
39 |
exit; |
40 |
} |
38 |
my $tracker = Koha::Linktracker->new( |
41 |
my $tracker = Koha::Linktracker->new( |
39 |
{ trackingmethod => $tracking_method } ); |
42 |
{ trackingmethod => $tracking_method } ); |
40 |
if ($uri && ($biblionumber || $itemnumber) ) { |
43 |
if ($uri && ($biblionumber || $itemnumber) ) { |
41 |
- |
|
|