Bug 38365: Add context to Koha::Devel::Files in add_csp_nonces.pl
The add_csp_nonces.pl file should use the exceptions in Koha::Devel::Files. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
62f5411fb5
commit
90f173ac6a
|
|
@ -155,8 +155,8 @@ sub process_file {
|
|||
}
|
||||
|
||||
# Find and process all template files
|
||||
my $dev_files = Koha::Devel::Files->new;
|
||||
my @tt_files = $dev_files->ls_tt_files;
|
||||
my $dev_files = Koha::Devel::Files->new( { context => 'nonce' } );
|
||||
my @tt_files = $dev_files->ls_tt_files();
|
||||
for my $file (@tt_files) {
|
||||
process_file($file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue