summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2013-01-07 16:06:30 (GMT)
committercatch2013-01-07 16:06:30 (GMT)
commit1691c94d062304bc72e4377b88505877c3542301 (patch)
tree57e8b0dba6baf2dbdf3ac5918995c68cc9902f66
parent26cf9defe8eeb4c3bc75efca3210ddc3ab0ea8cf (diff)
Issue #226873 by Denes.Szabo, rocket_nova, balintd, Albert Volkman, longwave, boydjd: Fixed With drupal_detect_baseurl() unused - remove it.
-rw-r--r--core/includes/install.inc19
1 files changed, 0 insertions, 19 deletions
diff --git a/core/includes/install.inc b/core/includes/install.inc
index 99cfcf6..aada754 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -105,25 +105,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.
*
* @return