From 765bbe1dad0bcd8318f023cbe6f979fc7dd4ccc8 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sun, 12 Aug 2012 20:09:20 -0400 Subject: [PATCH] Bug 8623: Do not accept "lib" as a valid theme Since we are going to be storing third-party Javascript libraries in koha-tmpl/opac-tmpl/lib and koha-tmpl/intranet-tmpl/lib, we want to make sure that "lib" is not picked up as a theme in the system preferences editor. Signed-off-by: Kyle M Hall --- C4/Koha.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Koha.pm b/C4/Koha.pm index 22afed6f2a..26106cf418 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -674,6 +674,7 @@ sub getallthemes { opendir D, "$htdocs"; my @dirlist = readdir D; foreach my $directory (@dirlist) { + next if $directory eq 'lib'; -d "$htdocs/$directory/en" and push @themes, $directory; } return @themes; -- 2.39.2