[Koha-bugs] [Bug 29684] Warning File not found: js/locale_data.js

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 4 10:46:15 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29684

--- Comment #37 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Saw this in 21.11:

[WARN] Preventing $template->lang='-undef-' to be overwritten by
template->{VARS}{lang}='-undef-' at /usr/share/koha/C4/Templates.pm line 118.

It comes from the 'honeypot'.
Undef overwritten by undef does not make me much wiser.

Am I mistaken that this code looks like a bug itself?
    if(exists $self->{VARS}{lang}) {
        warn "Preventing \$template->lang='" . ($self->{vars}{lang}//'-undef-')
            . "' to be overwritten by template->{VARS}{lang}='" .
($self->{VARS}{lang}//'-undef-') . "'";
        delete $self->{VARS}{lang};
    }

Should we replace $self->{vars}{lang} here by $vars->{lang}, which comes from
$self->lang ??

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list