Bugzilla – Attachment 12330 Details for
Bug 8787
If OpacMaintenance is on the requested page is loaded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
But 8787: don't load the page if OpacMaintenance is ON
But-8787-dont-load-the-page-if-OpacMaintenance-is-.patch (text/plain), 1.04 KB, created by
Jonathan Druart
on 2012-09-19 08:01:19 UTC
(
hide
)
Description:
But 8787: don't load the page if OpacMaintenance is ON
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-09-19 08:01:19 UTC
Size:
1.04 KB
patch
obsolete
>From 10e76ca40a693de3300e0957d22dd9115f1b2799 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 19 Sep 2012 09:59:59 +0200 >Subject: [PATCH] But 8787: don't load the page if OpacMaintenance is ON > >If the syspref OpacMaintenance is ON, it is useless to loaded the >requested page. > >To test: >- switch on the syspref OpacMaintenace >- check in your apache access log, zebra log, etc. the requested page is > not loaded (i.e. on the opac-search.pl page) >--- > C4/Auth.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index d4ad292..dc3fb8c 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -556,6 +556,7 @@ sub _version_check ($$) { > if (C4::Context->preference('OpacMaintenance') && $type eq 'opac') { > warn "OPAC Install required, redirecting to maintenance"; > print $query->redirect("/cgi-bin/koha/maintenance.pl"); >+ safe_exit; > } > unless ( $version = C4::Context->preference('Version') ) { # assignment, not comparison > if ( $type ne 'opac' ) { >-- >1.7.10.4
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 8787
:
12330
|
12367