From 6b3108197983f196f6fbbd95ec2809a4ff4105b1 Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 17 Mar 2008 10:38:18 +0000 Subject: Marcus Povey * Reverted regression caused by previous revision git-svn-id: https://code.elgg.org/elgg/trunk@234 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/configuration.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engine') diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 138b4b796..6b2bfbb49 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -33,10 +33,10 @@ if (empty($CONFIG->wwwroot)) { $CONFIG->wwwroot = "http://" . $_SERVER['SERVER_NAME']; - if (strripos($_SERVER['DOCUMENT_ROOT'],"/") < (strlen($_SERVER['DOCUMENT_ROOT']) - 1)) { - //$CONFIG->wwwroot .= "/"; - } - /* + /*if (strripos($_SERVER['DOCUMENT_ROOT'],"/") < (strlen($_SERVER['DOCUMENT_ROOT']) - 1)) { + $CONFIG->wwwroot .= "/"; + }*/ + $request = $_SERVER['REQUEST_URI']; if (strripos($request,"/") < (strlen($request) - 1)) { @@ -45,8 +45,8 @@ } $CONFIG->wwwroot .= $request; - */ - $CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path); + + //$CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path); } -- cgit v1.2.3