Bugzilla – Attachment 3839 Details for
Bug 6146
In Auth.pm the var OPACBaseURL ignores the syspref OPACBaseURL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
Auth.pm-OPACBaseURL.patch (text/plain), 1.55 KB, created by
Juan Romay Sieira
on 2011-04-08 12:55:38 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Juan Romay Sieira
Created:
2011-04-08 12:55:38 UTC
Size:
1.55 KB
patch
obsolete
>From f7dedcbcde21a3bbd97791898b6a905bb627ae7a Mon Sep 17 00:00:00 2001 >From: Juan Romay Sieira <juan.sieira@xercode.es> >Date: Fri, 8 Apr 2011 14:45:05 +0200 >Subject: [PATCH] In Auth.pm the var OPACBaseURL ignores the syspref OPACBaseURL. > If this syspref is set, its value must be included in this param. >Content-Type: text/plain; charset="utf-8" > >--- > C4/Auth.pm | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 7a0c13e..fc448e6 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -416,8 +416,7 @@ sub get_template_and_user { > OPACUserCSS => "". C4::Context->preference("OPACUserCSS"), > OPACViewOthersSuggestions => "" . C4::Context->preference("OPACViewOthersSuggestions"), > OpacAuthorities => C4::Context->preference("OpacAuthorities"), >- OPACBaseURL => ($in->{'query'}->https() ? "https://" : "http://") . $ENV{'SERVER_NAME'} . >- ($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" : "80") ? '' : ":$ENV{'SERVER_PORT'}"), >+ OPACBaseURL => ($in->{'query'}->https() ? "https://" : "http://") . (C4::Context->preference("OPACBaseURL") ne '' ? C4::Context->preference("OPACBaseURL") : ($ENV{'SERVER_NAME'}) . ($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" : "80") ? '' : ":$ENV{'SERVER_PORT'}")), > opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'}, > opac_search_limit => $opac_search_limit, > opac_limit_override => $opac_limit_override, >-- >1.7.4.1 >
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 6146
: 3839