aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/site
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-13 15:31:24 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-13 15:31:24 +0000
commitb06c6d6f157513e2fc5d6eaa1e6c02d1e1046567 (patch)
tree2037cc644e26084359f38de7c5f582a88779988c /actions/admin/site
parentdd354e7b0f75e59ed3be40dc7d7a3a8262213ccb (diff)
downloadelgg-b06c6d6f157513e2fc5d6eaa1e6c02d1e1046567.tar.gz
elgg-b06c6d6f157513e2fc5d6eaa1e6c02d1e1046567.tar.bz2
Refs #2450: Updated docs for core admin actions.
git-svn-id: http://code.elgg.org/elgg/trunk@6929 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin/site')
-rw-r--r--actions/admin/site/update_advanced.php16
-rw-r--r--actions/admin/site/update_basic.php18
2 files changed, 15 insertions, 19 deletions
diff --git a/actions/admin/site/update_advanced.php b/actions/admin/site/update_advanced.php
index e65919ce1..10a186bd1 100644
--- a/actions/admin/site/update_advanced.php
+++ b/actions/admin/site/update_advanced.php
@@ -1,14 +1,12 @@
<?php
/**
- * Elgg update site action
+ * Updates the advanced settings for the primary site object.
*
- * This is an update version of the sitesettings/install action
- * which is used by the admin panel to modify basic settings.
+ * Options are saved among metadata on the site object, entries
+ * in the datalist table, and entries in the config table.
*
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
+ * @package Elgg.Core
+ * @subpackage Administration.Site
*/
admin_gatekeeper();
@@ -49,14 +47,14 @@ if (datalist_get('default_site')) {
} else {
unset_config('debug', $site->getGUID());
}
-
+
// allow new user registration?
if (get_input('allow_registration', FALSE)) {
set_config('allow_registration', TRUE, $site->getGUID());
} else {
set_config('allow_registration', FALSE, $site->getGUID());
}
-
+
// setup walled garden
if (get_input('walled_garden', FALSE)) {
set_config('walled_garden', TRUE, $site->getGUID());
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index 5914ab0b5..dd3e08301 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -1,14 +1,13 @@
<?php
/**
- * Elgg update site action
+ * Updates the basic settings for the primary site object.
*
- * This is an update version of the sitesettings/install action
- * which is used by the admin panel to modify basic settings.
+ * Basic site settings are saved as metadata on the site object,
+ * with the exception of the default language, which is saved in
+ * the config table.
*
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
+ * @package Elgg.Core
+ * @subpackage Administration.Site
*/
admin_gatekeeper();
@@ -25,7 +24,6 @@ if (datalist_get('default_site')) {
$site->save();
set_config('language', get_input('language'), $site->getGUID());
+}
- forward($_SERVER['HTTP_REFERER']);
- exit;
-} \ No newline at end of file
+forward($_SERVER['HTTP_REFERER']); \ No newline at end of file