Commit 1691c94d authored by catch's avatar catch

Issue #226873 by Denes.Szabo, rocket_nova, balintd, Albert Volkman, longwave,...

Issue #226873 by Denes.Szabo, rocket_nova, balintd, Albert Volkman, longwave, boydjd: Fixed With drupal_detect_baseurl() unused - remove it.
parent 26cf9def
......@@ -104,25 +104,6 @@ function drupal_install_profile_distribution_name() {
}
}
/**
* Detects the base URL using the PHP $_SERVER variables.
*
* @param $file
* The name of the file calling this function so we can strip it out of
* the URI when generating the base_url.
*
* @return
* The auto-detected $base_url that should be configured in settings.php
*/
function drupal_detect_baseurl($file = 'core/install.php') {
$proto = $_SERVER['HTTPS'] ? 'https://' : 'http://';
$host = $_SERVER['SERVER_NAME'];
$port = ($_SERVER['SERVER_PORT'] == 80 ? '' : ':' . $_SERVER['SERVER_PORT']);
$dir = str_replace("/$file", '', $_SERVER['SCRIPT_NAME']);
return "$proto$host$port$dir";
}
/**
* Detects all supported databases that are compiled into PHP.
*
......
Markdown is supported
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