From: Bill Erickson Date: Fri, 21 Jan 2011 15:20:36 +0000 (-0500) Subject: don't muck w/ media_prefix if it's unset X-Git-Tag: opac-tt-poc-demo2~105 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ee400b45d9ae07a962172a24e61c417a8e0abf18;p=evergreen%2Fequinox.git don't muck w/ media_prefix if it's unset --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm index 3929285991..4980f792a5 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm @@ -122,7 +122,7 @@ sub load_context { $ctx->{theme} . ' : locale = ' . $ctx->{locale}); my $mprefix = $ctx->{media_prefix}; - if($mprefix !~ /^http/ and $mprefix !~ /^\//) { + if($mprefix and $mprefix !~ /^http/ and $mprefix !~ /^\//) { # if a hostname is provided /w no protocol, match the protocol to the current page $ctx->{media_prefix} = ($cgi->https) ? "https://$mprefix" : "http://$mprefix"; }