From f0dee4c85a3599f0711efd33377faa3d59298267 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 18 May 2011 01:13:21 +0000 Subject: 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 --- views/default/forms/register.php | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'views') 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'))); -- cgit v1.2.3