From 201726fae64cf57f2b7ad9690ecee161c9f19ab3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Sep 2015 09:50:15 +0100 Subject: [PATCH] Bug 13632: Populate user_flags and permissions tables in the web installer Move the 2 specific 'en' files outside of the language directory. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- C4/Installer.pm | 2 ++ installer/data/mysql/en/mandatory/userflags.txt | 1 - installer/data/mysql/en/mandatory/userpermissions.txt | 1 - installer/data/mysql/{en/mandatory => }/userflags.sql | 0 installer/data/mysql/{en/mandatory => }/userpermissions.sql | 0 5 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/en/mandatory/userflags.txt delete mode 100644 installer/data/mysql/en/mandatory/userpermissions.txt rename installer/data/mysql/{en/mandatory => }/userflags.sql (100%) rename installer/data/mysql/{en/mandatory => }/userpermissions.sql (100%) diff --git a/C4/Installer.pm b/C4/Installer.pm index a4f63a239a..d8f7a384bb 100644 --- a/C4/Installer.pm +++ b/C4/Installer.pm @@ -304,6 +304,8 @@ sub load_sql_in_order { # Make sure the global sysprefs.sql file is loaded first my $globalsysprefs = C4::Context->config('intranetdir') . "/installer/data/$self->{dbms}/sysprefs.sql"; unshift(@fnames, $globalsysprefs); + push @fnames, C4::Context->config('intranetdir') . "/installer/data/mysql/userflags.sql"; + push @fnames, C4::Context->config('intranetdir') . "/installer/data/mysql/userpermissions.sql"; foreach my $file (@fnames) { # warn $file; undef $/; diff --git a/installer/data/mysql/en/mandatory/userflags.txt b/installer/data/mysql/en/mandatory/userflags.txt deleted file mode 100644 index 5fa8bdd563..0000000000 --- a/installer/data/mysql/en/mandatory/userflags.txt +++ /dev/null @@ -1 +0,0 @@ -Default user permissions flags diff --git a/installer/data/mysql/en/mandatory/userpermissions.txt b/installer/data/mysql/en/mandatory/userpermissions.txt deleted file mode 100644 index 59b7ce1b19..0000000000 --- a/installer/data/mysql/en/mandatory/userpermissions.txt +++ /dev/null @@ -1 +0,0 @@ -Detailed staff user permissions diff --git a/installer/data/mysql/en/mandatory/userflags.sql b/installer/data/mysql/userflags.sql similarity index 100% rename from installer/data/mysql/en/mandatory/userflags.sql rename to installer/data/mysql/userflags.sql diff --git a/installer/data/mysql/en/mandatory/userpermissions.sql b/installer/data/mysql/userpermissions.sql similarity index 100% rename from installer/data/mysql/en/mandatory/userpermissions.sql rename to installer/data/mysql/userpermissions.sql -- 2.39.5