Bug 29673: Allow English sql localization script

Test plan:
You might want to add a simple SQL statement to your English
custom.sql in order to verify the execution.
Run a Koha install (in English).
Check if the data shows your custom sql action.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2021-12-09 16:07:18 +01:00 committed by Tomas Cohen Arazi
parent 7d47c1bc77
commit 015dcce2ab
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 3 additions and 1 deletions

View File

@ -370,7 +370,7 @@ sub load_sql_in_order {
;
my $localization_file = C4::Context->config('intranetdir') .
"/installer/data/$self->{dbms}/localization/$langchoice/custom.sql";
if ( $langchoice ne 'en' and -f $localization_file ) {
if ( -f $localization_file ) {
push @fnames, $localization_file;
}
foreach my $file (@fnames) {

View File

@ -0,0 +1,2 @@
-- custom.sql, English edition
-- You may want to add SQL statements here to customize your Koha install