Bug 14100: Fix test xt/author/valid_templates complaining on opac-topissues.tt
undef error - Undefined subroutine &C4::Languages::getlanguage called at C4/Koha.pm line 250. Test plan: prove xt/author/valid-templates.t Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
03891d2edc
commit
93d6de4bf0
1 changed files with 2 additions and 0 deletions
|
@ -247,6 +247,7 @@ sub GetItemTypes {
|
||||||
my ( %params ) = @_;
|
my ( %params ) = @_;
|
||||||
my $style = defined( $params{'style'} ) ? $params{'style'} : 'hash';
|
my $style = defined( $params{'style'} ) ? $params{'style'} : 'hash';
|
||||||
|
|
||||||
|
require C4::Languages;
|
||||||
my $language = C4::Languages::getlanguage();
|
my $language = C4::Languages::getlanguage();
|
||||||
# returns a reference to a hash of references to itemtypes...
|
# returns a reference to a hash of references to itemtypes...
|
||||||
my %itemtypes;
|
my %itemtypes;
|
||||||
|
@ -549,6 +550,7 @@ Defaults to intranet.
|
||||||
sub getitemtypeinfo {
|
sub getitemtypeinfo {
|
||||||
my ($itemtype, $interface) = @_;
|
my ($itemtype, $interface) = @_;
|
||||||
my $dbh = C4::Context->dbh;
|
my $dbh = C4::Context->dbh;
|
||||||
|
require C4::Languages;
|
||||||
my $language = C4::Languages::getlanguage();
|
my $language = C4::Languages::getlanguage();
|
||||||
my $it = $dbh->selectrow_hashref(q|
|
my $it = $dbh->selectrow_hashref(q|
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in a new issue