aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-01-16 21:49:03 +0100
committerCash Costello <cash.costello@gmail.com>2012-01-18 18:36:08 -0500
commitf942750eacc2a0314d601f666fbff27f2f58ed34 (patch)
tree94c6b160305807a0904df2391087720353bd20b1 /views/default
parent34b77f9b8cec3368789f48ad466b9a3de0506fa4 (diff)
downloadelgg-f942750eacc2a0314d601f666fbff27f2f58ed34.tar.gz
elgg-f942750eacc2a0314d601f666fbff27f2f58ed34.tar.bz2
Fixed #3155. Limited site default access to core access levels.
Diffstat (limited to 'views/default')
-rw-r--r--views/default/forms/admin/site/update_advanced.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/forms/admin/site/update_advanced.php b/views/default/forms/admin/site/update_advanced.php
index 5155fc415..f79a235b5 100644
--- a/views/default/forms/admin/site/update_advanced.php
+++ b/views/default/forms/admin/site/update_advanced.php
@@ -19,6 +19,12 @@ foreach (array('wwwroot', 'path', 'dataroot') as $field) {
$form_body .= "<div>" . elgg_echo('admin:site:access:warning') . "<br />";
$form_body .= "<label>" . elgg_echo('installation:sitepermissions') . "</label>";
$form_body .= elgg_view('input/access', array(
+ 'options_values' => array(
+ ACCESS_PRIVATE => elgg_echo("PRIVATE"),
+ ACCESS_FRIENDS => elgg_echo("access:friends:label"),
+ ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"),
+ ACCESS_PUBLIC => elgg_echo("PUBLIC")
+ ),
'name' => 'default_access',
'value' => elgg_get_config('default_access'),
)) . "</div>";
@@ -95,4 +101,4 @@ $form_body .= '<div class="elgg-foot">';
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
$form_body .= '</div>';
-echo $form_body; \ No newline at end of file
+echo $form_body;