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) Signed-off-by: Marc Veron <veron@veron.ch> Checked by watching other_vhosts_access.log Works as expected Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Liz Rea - Catalyst <liz@catalyst.net.nz>
This commit is contained in:
parent
b6ad717964
commit
202a2c4381
|
|
@ -589,6 +589,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' ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue