aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r--engine/lib/configuration.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 43b01e88e..6b2bfbb49 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -21,7 +21,7 @@
function set_default_config() {
global $CONFIG;
-
+
if (empty($CONFIG->path))
$CONFIG->path = str_replace("\\","/",dirname(dirname(dirname(__FILE__)))) . "/";
@@ -37,14 +37,16 @@
$CONFIG->wwwroot .= "/";
}*/
- //$request = $_SERVER['REQUEST_URI'];
- $request = str_replace($_SERVER['DOCUMENT_ROOT'],'',$CONFIG->path);
+ $request = $_SERVER['REQUEST_URI'];
+
if (strripos($request,"/") < (strlen($request) - 1)) {
// addressing a file directly, not a dir
$request = substr($request, 0, strripos($request,"/")+1);
}
$CONFIG->wwwroot .= $request;
+
+ //$CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path);
}
@@ -55,7 +57,7 @@
$CONFIG->sitename = "New Elgg site";
if (empty($CONFIG->debug))
- $CONFIG->debug = false;
+ $CONFIG->debug = false;
}