aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-01-18 17:53:42 +0100
committerJerome Bakker <jeabakker@coldtrick.com>2012-01-18 17:53:42 +0100
commit862ae30b9ea5544c28d5a2c36ebb416ed958c5e5 (patch)
treeff55c7eaa6096bedc5bb9e5b332cb422d3f81e9a /actions/admin
parentf49edad1541b1599cd591ff3cd8397e63e37469c (diff)
downloadelgg-862ae30b9ea5544c28d5a2c36ebb416ed958c5e5.tar.gz
elgg-862ae30b9ea5544c28d5a2c36ebb416ed958c5e5.tar.bz2
solves part of #4307
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/site/update_basic.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index 45f00a20d..97d258b65 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -10,8 +10,7 @@
* @subpackage Administration.Site
*/
-if (datalist_get('default_site')) {
- $site = get_entity(datalist_get('default_site'));
+if ($site = elgg_get_site_entity()) {
if (!($site instanceof ElggSite)) {
throw new InstallationException(elgg_echo('InvalidParameterException:NonElggSite'));
}