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 <kyle@bywatersolutions.com>
This commit is contained in:
parent
33113e69c0
commit
765bbe1dad
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue