@@ -, +, @@
not enabled
---
.../en/modules/opac-reportproblem.tt | 98 +++++++++----------
opac/opac-reportproblem.pl | 4 +
2 files changed, 50 insertions(+), 52 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reportproblem.tt
@@ -27,60 +27,54 @@
[% END %]
Report a problem
- [% IF Koha.Preference('OPACReportProblem') %]
-
- [% IF ( successfuladd ) %]
- Your problem report has been sent to the [% IF ( recipient == 'admin' ) %]Koha Administrator[% ELSE %][% recipient %][% END %].
- [% END %]
- [% IF ( ( nolibemail and noadminemail ) or norecipients ) %]
- Unable to send problem reports.
- [% ELSE %]
-
[% END %]
--- a/opac/opac-reportproblem.pl
+++ a/opac/opac-reportproblem.pl
@@ -39,6 +39,10 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
}
);
+if ( !C4::Context->preference('OPACReportProblem') ){
+ print $input->redirect("/cgi-bin/koha/errors/404.pl");
+}
+
my $problempage = $ENV{HTTP_REFERER};
my $member = Koha::Patrons->find($borrowernumber);
my $username = $member->userid;
--