Bugzilla – Attachment 84119 Details for
Bug 22026
Remove `use Modern::Perl` from Koha::REST::classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes
Bug-22026-Removed-use-ModernPerl-from-KohaRESTclas.patch (text/plain), 7.02 KB, created by
Jasmine Amohia
on 2019-01-17 02:58:03 UTC
(
hide
)
Description:
Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes
Filename:
MIME Type:
Creator:
Jasmine Amohia
Created:
2019-01-17 02:58:03 UTC
Size:
7.02 KB
patch
obsolete
>From b9ef539bfd5ab282b6f8b36aa0f144604aab46bf Mon Sep 17 00:00:00 2001 >From: Jasmine Amohia <jasmineamohia.student@wegc.school.nz> >Date: Thu, 17 Jan 2019 02:55:46 +0000 >Subject: [PATCH] Bug 22026: Removed 'use Modern::Perl;' from > Koha::REST::classes > >Test plan: >1) Check all Koha/REST files and confirm that 'use Modern::Perl;' has >been removed. >--- > Koha/REST/Plugin/Objects.pm | 2 -- > Koha/REST/Plugin/Pagination.pm | 2 -- > Koha/REST/Plugin/PluginRoutes.pm | 2 -- > Koha/REST/Plugin/Query.pm | 2 -- > Koha/REST/V1.pm | 2 -- > Koha/REST/V1/Acquisitions/Vendors.pm | 2 -- > Koha/REST/V1/Auth.pm | 2 -- > Koha/REST/V1/Cities.pm | 2 -- > Koha/REST/V1/Hold.pm | 2 -- > Koha/REST/V1/Illrequests.pm | 2 -- > Koha/REST/V1/OAuth.pm | 2 -- > Koha/REST/V1/Patrons.pm | 2 -- > Koha/REST/V1/Patrons/Account.pm | 2 -- > Koha/REST/V1/Stage.pm | 2 -- > 14 files changed, 28 deletions(-) > >diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm >index 3653f914ef..931c647f89 100644 >--- a/Koha/REST/Plugin/Objects.pm >+++ b/Koha/REST/Plugin/Objects.pm >@@ -15,8 +15,6 @@ package Koha::REST::Plugin::Objects; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Plugin'; > > =head1 NAME >diff --git a/Koha/REST/Plugin/Pagination.pm b/Koha/REST/Plugin/Pagination.pm >index 02560055f0..47c7fc08a4 100644 >--- a/Koha/REST/Plugin/Pagination.pm >+++ b/Koha/REST/Plugin/Pagination.pm >@@ -15,8 +15,6 @@ package Koha::REST::Plugin::Pagination; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Plugin'; > > =head1 NAME >diff --git a/Koha/REST/Plugin/PluginRoutes.pm b/Koha/REST/Plugin/PluginRoutes.pm >index f51c7bdb46..17ccab38c3 100644 >--- a/Koha/REST/Plugin/PluginRoutes.pm >+++ b/Koha/REST/Plugin/PluginRoutes.pm >@@ -15,8 +15,6 @@ package Koha::REST::Plugin::PluginRoutes; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Plugin'; > > use Koha::Exceptions::Plugin; >diff --git a/Koha/REST/Plugin/Query.pm b/Koha/REST/Plugin/Query.pm >index 090f02fe0b..21479f8d01 100644 >--- a/Koha/REST/Plugin/Query.pm >+++ b/Koha/REST/Plugin/Query.pm >@@ -15,8 +15,6 @@ package Koha::REST::Plugin::Query; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Plugin'; > > use Koha::Exceptions; >diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm >index b1f4657d4a..df327e9c55 100644 >--- a/Koha/REST/V1.pm >+++ b/Koha/REST/V1.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious'; > > use C4::Context; >diff --git a/Koha/REST/V1/Acquisitions/Vendors.pm b/Koha/REST/V1/Acquisitions/Vendors.pm >index 5f86ac82d4..79f401f65a 100644 >--- a/Koha/REST/V1/Acquisitions/Vendors.pm >+++ b/Koha/REST/V1/Acquisitions/Vendors.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Acquisitions::Vendors; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use Koha::Acquisition::Booksellers; >diff --git a/Koha/REST/V1/Auth.pm b/Koha/REST/V1/Auth.pm >index cf64a25828..a8b548f4a4 100644 >--- a/Koha/REST/V1/Auth.pm >+++ b/Koha/REST/V1/Auth.pm >@@ -17,8 +17,6 @@ package Koha::REST::V1::Auth; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use C4::Auth qw( check_cookie_auth get_session haspermission ); >diff --git a/Koha/REST/V1/Cities.pm b/Koha/REST/V1/Cities.pm >index 5a579b4ee4..8bca97cc65 100644 >--- a/Koha/REST/V1/Cities.pm >+++ b/Koha/REST/V1/Cities.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Cities; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use Koha::Cities; >diff --git a/Koha/REST/V1/Hold.pm b/Koha/REST/V1/Hold.pm >index c3cb926e78..bc25750c0f 100644 >--- a/Koha/REST/V1/Hold.pm >+++ b/Koha/REST/V1/Hold.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Hold; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use C4::Biblio; >diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm >index a3a0d61c1c..324a1ca94f 100644 >--- a/Koha/REST/V1/Illrequests.pm >+++ b/Koha/REST/V1/Illrequests.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Illrequests; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use Koha::Illrequests; >diff --git a/Koha/REST/V1/OAuth.pm b/Koha/REST/V1/OAuth.pm >index b75c89243c..e7c8ec7a70 100644 >--- a/Koha/REST/V1/OAuth.pm >+++ b/Koha/REST/V1/OAuth.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::OAuth; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Module::Load::Conditional; > > use C4::Context; >diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm >index 5e8e398eac..531559644a 100644 >--- a/Koha/REST/V1/Patrons.pm >+++ b/Koha/REST/V1/Patrons.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Patrons; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use Koha::DateUtils; >diff --git a/Koha/REST/V1/Patrons/Account.pm b/Koha/REST/V1/Patrons/Account.pm >index deb4d3d58c..3fd3eef398 100644 >--- a/Koha/REST/V1/Patrons/Account.pm >+++ b/Koha/REST/V1/Patrons/Account.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Patrons::Account; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use Koha::Patrons; >diff --git a/Koha/REST/V1/Stage.pm b/Koha/REST/V1/Stage.pm >index 485384a41b..f439e979dc 100644 >--- a/Koha/REST/V1/Stage.pm >+++ b/Koha/REST/V1/Stage.pm >@@ -15,8 +15,6 @@ package Koha::REST::V1::Stage; > # with Koha; if not, write to the Free Software Foundation, Inc., > # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > >-use Modern::Perl; >- > use Mojo::Base 'Mojolicious::Controller'; > > use Koha::StockRotationRotas; >-- >2.11.0
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 22026
:
84119
|
84179
|
84189