Bug 18829: (QA follow-up) Replace forbidden indirect syntax
This pattern is forbidden and was overlooked by QA. To test: 1. Run: $ ktd --shell k$ prove t/00-testcritic.t => FAIL: Tests fail with 'Subroutine "new" called using indirect syntax...' 2. Apply this patch 3. Repeat 1 => SUCCESS: Tests pass 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d95f31dcc6
commit
1344050ab4
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ use C4::XSLT ;
|
||||||
use Koha::SearchEngine::Elasticsearch;
|
use Koha::SearchEngine::Elasticsearch;
|
||||||
use LWP::Simple qw/get/;
|
use LWP::Simple qw/get/;
|
||||||
|
|
||||||
my $input= new CGI;
|
my $input= CGI->new;
|
||||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||||
{
|
{
|
||||||
template_name => "catalogue/showelastic.tt",
|
template_name => "catalogue/showelastic.tt",
|
||||||
|
|
Loading…
Reference in a new issue