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

(-)a/Koha/ContentSecurityPolicy.pm (-4 / +3 lines)
Lines 84-90 sub new { Link Here
84
sub header_name {
84
sub header_name {
85
    my ( $self, $args ) = @_;
85
    my ( $self, $args ) = @_;
86
86
87
    my $interface //= $args->{interface} || C4::Context->interface;
87
    my $interface = $args->{interface} || C4::Context->interface;
88
88
89
    my $conf_csp = $self->{config}->get('content_security_policy');
89
    my $conf_csp = $self->{config}->get('content_security_policy');
90
90
Lines 119-125 sub header_name { Link Here
119
sub header_value {
119
sub header_value {
120
    my ( $self, $args ) = @_;
120
    my ( $self, $args ) = @_;
121
121
122
    my $interface //= $args->{interface} || C4::Context->interface;
122
    my $interface = $args->{interface} || C4::Context->interface;
123
123
124
    my $conf_csp = $self->{config}->get('content_security_policy');
124
    my $conf_csp = $self->{config}->get('content_security_policy');
125
125
Lines 153-159 sub header_value { Link Here
153
153
154
sub is_enabled {
154
sub is_enabled {
155
    my ( $self, $args ) = @_;
155
    my ( $self, $args ) = @_;
156
    my $interface //= $args->{interface} || C4::Context->interface;
156
    my $interface = $args->{interface} || C4::Context->interface;
157
157
158
    my $conf_csp = $self->{config}->get('content_security_policy');
158
    my $conf_csp = $self->{config}->get('content_security_policy');
159
159
160
- 

Return to bug 38365