aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-18 01:13:21 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-18 01:13:21 +0000
commitf0dee4c85a3599f0711efd33377faa3d59298267 (patch)
tree2b897ff596c848c602185916457e824544f8fe2d /views
parenta59b9ec70ef9c8aaf0ae2e03bdc66753da415d08 (diff)
downloadelgg-f0dee4c85a3599f0711efd33377faa3d59298267.tar.gz
elgg-f0dee4c85a3599f0711efd33377faa3d59298267.tar.bz2
Fixes #3419 removed code about admin option from registration form
git-svn-id: http://code.elgg.org/elgg/trunk@9097 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/forms/register.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/views/default/forms/register.php b/views/default/forms/register.php
index 6f35a3ea3..4e0a521ab 100644
--- a/views/default/forms/register.php
+++ b/views/default/forms/register.php
@@ -11,17 +11,9 @@ $username = get_input('u');
$email = get_input('e');
$name = get_input('n');
-$admin_option = false;
-if (elgg_is_admin_logged_in() && isset($vars['show_admin'])) {
- $admin_option = true;
-}
-
if (elgg_is_sticky_form('register')) {
extract(elgg_get_sticky_values('register'));
elgg_clear_sticky_form('register');
- if (is_array($admin)) {
- $admin = $admin[0];
- }
}
?>
@@ -78,13 +70,6 @@ echo elgg_view('register/extend');
// Add captcha hook
echo elgg_view('input/captcha');
-if ($admin_option) {
- echo elgg_view('input/checkboxes', array(
- 'name' => "admin",
- 'options' => array(elgg_echo('admin_option')),
- ));
-}
-
echo elgg_view('input/hidden', array('name' => 'friend_guid', 'value' => $vars['friend_guid']));
echo elgg_view('input/hidden', array('name' => 'invitecode', 'value' => $vars['invitecode']));
echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register')));