From fb54f8b12f5cb05457e77c90a546bf7f8fd49c36 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 22 Jul 2025 14:55:20 +0200 Subject: [PATCH] Bug 30915: Remove the TT plugin itself Content-Type: text/plain; charset=utf-8 Test plan: git grep Koha::Template::Plugin::Context git grep "\[% USE Context" Signed-off-by: Marcel de Rooy --- Koha/Template/Plugin/Context.pm | 54 --------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 Koha/Template/Plugin/Context.pm diff --git a/Koha/Template/Plugin/Context.pm b/Koha/Template/Plugin/Context.pm deleted file mode 100644 index cccb346963..0000000000 --- a/Koha/Template/Plugin/Context.pm +++ /dev/null @@ -1,54 +0,0 @@ -package Koha::Template::Plugin::Context; - -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# Koha is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Koha; if not, see . - -use Modern::Perl; - -use base qw( Template::Plugin ); - -use C4::Context; - -=head1 NAME - -Koha::Template::Plugin::Scalar - Return object set in scalar context - -=head1 SYNOPSIS - -If you need to force scalar context when calling a method on a object set. -Especially useful to call ->search - -=cut - -=head1 API - -=head2 Class Methods - -=cut - -=head3 Scalar - -Return object set in scalar context - -=cut - -sub Scalar { - my ( $self, $set, $method ) = @_; - return unless $set; - $set = $set->$method; - return $set; -} - -1; -- 2.39.5