Bug 28836 - Duplicated import in template plugins
Summary: Duplicated import in template plugins
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-10 11:48 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2021-08-10 11:48 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2021-08-10 11:48:18 UTC
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