aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-01-18 17:54:36 +0100
committerJerome Bakker <jeabakker@coldtrick.com>2012-01-18 17:54:36 +0100
commit4475c407da7af8aef22b05d42a47d25019e68093 (patch)
treeb20049b479c4a6b6efeb0885bcb9d3763cd1ce34 /actions/admin
parent862ae30b9ea5544c28d5a2c36ebb416ed958c5e5 (diff)
downloadelgg-4475c407da7af8aef22b05d42a47d25019e68093.tar.gz
elgg-4475c407da7af8aef22b05d42a47d25019e68093.tar.bz2
solves part of #4307
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/site/update_advanced.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/actions/admin/site/update_advanced.php b/actions/admin/site/update_advanced.php
index 7d57f78ea..12c5542e7 100644
--- a/actions/admin/site/update_advanced.php
+++ b/actions/admin/site/update_advanced.php
@@ -9,8 +9,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'));
}