Bug 31390: Remove noisy warns in C4::Templates
This patch removes two noisy warnings from C4::Templates 0) Apply patch and koha-plack --restart kohadev 1) Go to http://localhost:8081/ 2) Note no warnings in /var/log/koha/kohadev/plack-intranet-error.log 3) Go to http://localhost:8080/ 3) Note no warnings in /var/log/koha/kohadev/plack-opac-error.log Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit368b1462e5) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit08dc25d757) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
12fa274ba7
commit
6451a70283
|
|
@ -213,7 +213,6 @@ sub badtemplatecheck {
|
|||
|
||||
sub gettemplate {
|
||||
my ( $tmplbase, $interface, $query ) = @_;
|
||||
($query) or warn "no query in gettemplate";
|
||||
my ($htdocs, $theme, $lang, $filename)
|
||||
= _get_template_file($tmplbase, $interface, $query);
|
||||
badtemplatecheck( $filename ); # single trip for bad templates
|
||||
|
|
@ -273,7 +272,6 @@ the use case where the DB is not populated already when rewriting/fixing.
|
|||
|
||||
sub themelanguage {
|
||||
my ($htdocs, $tmpl, $interface, $query) = @_;
|
||||
($query) or warn "no query in themelanguage";
|
||||
|
||||
# Select a language based on cookie, syspref available languages & browser
|
||||
my $lang = C4::Languages::getlanguage($query);
|
||||
|
|
|
|||
Loading…
Reference in New Issue