aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/configuration.php10
-rw-r--r--engine/start.php4
-rw-r--r--views/default/pageshells/pageshell.php2
3 files changed, 10 insertions, 6 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 94ef22a10..47a0d5428 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -116,9 +116,13 @@
global $CONFIG;
- $CONFIG->path = datalist_get('path');
- $CONFIG->dataroot = datalist_get('dataroot');
- if (isset($CONFIG->site)) {
+ $path = datalist_get('path');
+ if (!empty($path))
+ $CONFIG->path = $path;
+ $dataroot = datalist_get('dataroot');
+ if (!empty($dataroot))
+ $CONFIG->dataroot = $dataroot;
+ if (isset($CONFIG->site) && (get_class($CONFIG->site) == "ElggSite")) {
$CONFIG->wwwroot = $CONFIG->site->url;
$CONFIG->sitename = $CONFIG->site->name;
}
diff --git a/engine/start.php b/engine/start.php
index 6faf67f12..673f83d09 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -115,12 +115,12 @@
}
+ // Autodetect some default configuration settings
+ set_default_config();
// Trigger events
trigger_event('boot', 'system');
// Forward if we haven't been installed
if ((!is_installed() || !is_db_installed()) && !substr_count($_SERVER["PHP_SELF"],"install.php")) {
- // Autodetect some default configuration settings
- set_default_config();
header("Location: install.php");
exit;
}
diff --git a/views/default/pageshells/pageshell.php b/views/default/pageshells/pageshell.php
index 470324fbd..253029cc8 100644
--- a/views/default/pageshells/pageshell.php
+++ b/views/default/pageshells/pageshell.php
@@ -78,7 +78,7 @@
<!-- box content -->
<a href="#" class="togglepanel">[-]</a>
<a href="#" class="button_editpanel">Edit</a>
- <h1>title in here</h1>
+ <h1><?php echo $title; ?></h1>
<div class="editpanel">
<p>Here's the edit controls for this widget</p>