From e9ff70e07b6682b3300e9db09bc98934351cc315 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 16 Sep 2025 12:37:20 +0000 Subject: [PATCH] Bug 39980: Add license and POD to Koha::App::Controller::CGI Signed-off-by: Jonathan Druart --- 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 . + 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.34.1