Bug 18982: Use KOHA_INTRANET_URL instead of syspref staffClientBaseURL
That way we do not need to set the syspref, we can define it setting an env var, like other tests. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit78d77163af) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit0ec81e6248) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
6afabe3359
commit
cf82a24b96
|
|
@ -48,7 +48,7 @@ use MARC::Field;
|
|||
my $dbh = C4::Context->dbh;
|
||||
my $login = 'koha';
|
||||
my $password = 'koha';
|
||||
my $base_url= 'http://'.C4::Context->preference("staffClientBaseURL")."/cgi-bin/koha/";
|
||||
my $base_url= ( $ENV{KOHA_INTRANET_URL} || 'http://'.C4::Context->preference("staffClientBaseURL") ) . "/cgi-bin/koha/";
|
||||
|
||||
my $number_of_biblios_to_insert = 3;
|
||||
our $sample_data = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue