[Vtigercrm-commits] [vtiger-commits] r10515 - /vtigercrm/branches/5.0.3/install/2setConfig.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 22 04:57:33 EDT 2007
Author: richie
Date: Thu Mar 22 02:57:26 2007
New Revision: 10515
Log:
another variable added to avoid empty hostname
Modified:
vtigercrm/branches/5.0.3/install/2setConfig.php
Modified: vtigercrm/branches/5.0.3/install/2setConfig.php
==============================================================================
--- vtigercrm/branches/5.0.3/install/2setConfig.php (original)
+++ vtigercrm/branches/5.0.3/install/2setConfig.php Thu Mar 22 02:57:26 2007
@@ -28,7 +28,8 @@
//$web_root = $_SERVER['SERVER_NAME']. ":" .$_SERVER['SERVER_PORT'].$_SERVER['PHP_SELF'];
//$web_root = $hostname.$_SERVER['PHP_SELF'];
//$web_root = $HTTP_SERVER_VARS["HTTP_HOST"] . $HTTP_SERVER_VARS["REQUEST_URI"];
-$web_root = $_ENV["HOSTNAME"] . $HTTP_SERVER_VARS["REQUEST_URI"];
+$web_root = ($_ENV["HOSTNAME"]=='')? $HTTP_SERVER_VARS["HTTP_HOST"]:$_ENV["HOSTNAME"];
+$web_root .= $HTTP_SERVER_VARS["REQUEST_URI"];
$web_root = str_replace("/install.php", "", $web_root);
$web_root = "http://".$web_root;
More information about the vtigercrm-commits
mailing list