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.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 66b36bf63..d60b7b8f3 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -39,6 +39,9 @@
$CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path);
}
+ if (empty($CONFIG->url))
+ $CONFIG->url = $CONFIG->wwwroot;
+
if (empty($CONFIG->sitename))
$CONFIG->sitename = "New Elgg site";