Commit 07494805 authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-697] Disable automatic port detection because production uses 8080 behind...

[gh-697] Disable automatic port detection because production uses 8080 behind varnish, which breaks includes.
parent 03fd6960
......@@ -1119,9 +1119,11 @@ function unl_filter_ssi_process($text, $filter, $format, $langcode, $cache, $cac
if (!isset($parts['host'])) {
$parts['host'] = $_SERVER['SERVER_NAME'];
}
/* We can't do this on production because we're running on port 8080.
if (!isset($parts['port']) && !in_array($_SERVER['SERVER_PORT'], array(80, 443))) {
$parts['port'] = $_SERVER['SERVER_PORT'];
}
*/
if (isset($parts['path']) && substr($parts['path'], 0, 1) != '/') {
if (variable_get('unl_use_base_tag')) {
$parts['path'] = $GLOBALS['base_path'] . $parts['path'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment