Bugzilla – Attachment 186475 Details for
Bug 39980
Vendors pages are broken when using Koha as a Mojolicious application
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39980: Add license and POD to Koha::App::Controller::CGI
Bug-39980-Add-license-and-POD-to-KohaAppController.patch (text/plain), 1.92 KB, created by
Julian Maurice
on 2025-09-16 12:38:03 UTC
(
hide
)
Description:
Bug 39980: Add license and POD to Koha::App::Controller::CGI
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2025-09-16 12:38:03 UTC
Size:
1.92 KB
patch
obsolete
>From 534a3cc8d7a2aedbc7cf4e826dea829208ad5ade Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 16 Sep 2025 12:37:20 +0000 >Subject: [PATCH] Bug 39980: Add license and POD to Koha::App::Controller::CGI > >--- > Koha/App/Controller/CGI.pm | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > >diff --git a/Koha/App/Controller/CGI.pm b/Koha/App/Controller/CGI.pm >index fba3f9e2a34..7edb590158e 100644 >--- a/Koha/App/Controller/CGI.pm >+++ b/Koha/App/Controller/CGI.pm >@@ -1,11 +1,30 @@ > package Koha::App::Controller::CGI; > >+# 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 Mojo::Base 'Mojolicious::Controller'; > > use CGI::Compile; > use CGI::Emulate::PSGI; > use CGI; > >+=head1 NAME >+ >+Koha::App::Controller::CGI - Mojolicious controller for all CGI scripts >+ >+=cut >+ > # CGI::Compile calls CGI::initialize_globals before each request, which resets PARAM_UTF8 to 0 > # We need to set it back to the correct value > { >@@ -17,6 +36,14 @@ use CGI; > }; > } > >+=head1 METHODS >+ >+=head2 intranet >+ >+Controller action that routes the request to the corresponding intranet CGI script >+ >+=cut >+ > sub intranet { > my ($c) = @_; > >@@ -28,6 +55,12 @@ sub intranet { > $c->_render_script($script); > } > >+=head2 opac >+ >+Controller action that routes the request to the corresponding OPAC CGI script >+ >+=cut >+ > sub opac { > my ($c) = @_; > >-- >2.39.5
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 39980
:
182768
|
182769
|
182874
|
182875
|
184292
|
184293
|
186452
|
186475
|
186482
|
186483
|
186484
|
186485