Bugzilla – Attachment 185109 Details for
Bug 30915
"Scalar" TT plugin no longer needed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30915: Remove the TT plugin itself
Bug-30915-Remove-the-TT-plugin-itself.patch (text/plain), 1.98 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-08-04 17:49:06 UTC
(
hide
)
Description:
Bug 30915: Remove the TT plugin itself
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-08-04 17:49:06 UTC
Size:
1.98 KB
patch
obsolete
>From dacded422411e0aa591b8289112d6f5b2edd9394 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 22 Jul 2025 14:55:20 +0200 >Subject: [PATCH] Bug 30915: Remove the TT plugin itself > >Test plan: >git grep Koha::Template::Plugin::Context >git grep "\[% USE Context" > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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 cccb346963c..00000000000 >--- 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 <http://www.gnu.org/licenses>. >- >-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.50.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30915
:
184468
|
184469
|
185108
| 185109 |
185117