From 50128d16b197c7720d4bd48b1dd777f889e3c7db 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index 4f386e4..0e9f4a8 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; -- 1.7.2.5