[Koha-bugs] [Bug 28836] New: Duplicated import in template plugins
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Aug 10 13:48:18 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28836
Bug ID: 28836
Summary: Duplicated import in template plugins
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
QA Contact: testopia at bugs.koha-community.org
In template plugins, we often find double importing of the parent library:
use Template::Plugin;
use base qw( Template::Plugin );
Some of the plugins use 'base' [1] like this, and others use 'parent' (that
seems to be what we should be using in this cases, as we are not ) [2].
[1] https://perldoc.perl.org/base
[2] https://perldoc.perl.org/parent#HISTORY
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list