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:
David Cook 2026-03-11 02:28:46 +00:00 committed by Jonathan Druart
parent 62f5411fb5
commit 90f173ac6a
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}