[Koha-bugs] [Bug 7307] OPACBaseURL not used in opac-search.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 6 10:32:29 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7307

--- Comment #10 from Adrien SAURAT <adrien.saurat at biblibre.com> 2012-01-06 09:32:29 UTC ---
I'm preparing a patch where the whole path has to be stored in the system
preference, but I have a doubt about C4/Auth.pm, which contains the following
code at line 445 :

  OPACBaseURL               => ($in->{'query'}->https() ? "https://" :
"http://") . $ENV{'SERVER_NAME'} .
                   ($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" :
"80") ? '' : ":$ENV{'SERVER_PORT'}"),


Should I replace this by a simple :

  OPACBaseURL => C4::Context->preference('OPACBaseURL')

or is there a reason to keep such a construction with SERVER_PORT ?

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list