OPACBaseURL - do not tack on :443 if using SSL

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2008-06-02 08:13:34 -05:00 committed by Joshua Ferraro
parent d177975239
commit fe65447e5b

View file

@ -319,7 +319,7 @@ sub get_template_and_user {
AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"),
OPACBaseURL=> ($in->{'query'}->https() ? "https://" : "http://") .
$ENV{'SERVER_NAME'} .
($ENV{'SERVER_PORT'} eq "80" ? '' : ":$ENV{'SERVER_PORT'}"),
($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" : "80") ? '' : ":$ENV{'SERVER_PORT'}"),
);
}
$template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]);