aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/admin/site/update_basic.php6
-rw-r--r--engine/lib/configuration.php3
2 files changed, 6 insertions, 3 deletions
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index d45e54e76..d86ec9981 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -44,8 +44,10 @@
unset_config('debug', $site->getGUID());
- $site->save();
- system_message(elgg_echo("admin:configuration:success"));
+ if ($site->save())
+ system_message(elgg_echo("admin:configuration:success"));
+ else
+ register_error(elgg_echo("admin:configuration:fail"));
header("Location: {$CONFIG->wwwroot}admin/site/");
exit;
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 7383b6a35..bdba96b2b 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -179,7 +179,8 @@
$CONFIG->dataroot = $dataroot;
if (isset($CONFIG->site) && (get_class($CONFIG->site) == "ElggSite")) {
$CONFIG->wwwroot = $CONFIG->site->url;
- $CONFIG->sitename = $CONFIG->site->name;
+ $CONFIG->sitename = $CONFIG->site->name;
+ $CONFIG->sitedescription = $CONFIG->site->description;
}
$CONFIG->url = $CONFIG->wwwroot;