From fe2560c06a6ae8c93291c99b5afd410b5f721f52 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 16 Jan 2018 10:20:21 +0100 Subject: [PATCH] Bug 19977: Open only .pref files in Local Use tab (sysprefs) Test plan: 1. Open .../prog/en/modules/admin/preferences/circulation.pref with vim (check that it creates a .circulation.pref.swp in the same directory) 2. Go to the "Local Use" tab in admin/systempreferences.pl 3. Confirm that the page works normally Signed-off-by: Mark Tompsett Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- admin/systempreferences.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 67e063895b..7256873dee 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -392,7 +392,7 @@ sub get_prefs_from_files { '/prog/en/modules/admin/preferences'; # Get all .pref file names opendir ( my $fh, $path_pref_en ); - my @pref_files = grep { /.pref/ } readdir($fh); + my @pref_files = grep { /.pref$/ } readdir($fh); close $fh; my @names = (); -- 2.39.5