diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 01:27:40 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 01:27:40 +0000 |
commit | af2f3805095f8a91d85847e11faeb280fddf58c0 (patch) | |
tree | 221ef519a94523d494511ba33acb3f34f68f04c0 /views/default/forms/profile | |
parent | 9af0f9be12346d2008cf6de6e5ab7bd083c09c8c (diff) | |
download | elgg-af2f3805095f8a91d85847e11faeb280fddf58c0.tar.gz elgg-af2f3805095f8a91d85847e11faeb280fddf58c0.tar.bz2 |
Fixes #2921: converted internalname => name and internalid => id
git-svn-id: http://code.elgg.org/elgg/trunk@8249 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/profile')
-rw-r--r-- | views/default/forms/profile/edit.php | 8 | ||||
-rw-r--r-- | views/default/forms/profile/fields/add.php | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/views/default/forms/profile/edit.php b/views/default/forms/profile/edit.php index 4d2987a03..aaf9ac01e 100644 --- a/views/default/forms/profile/edit.php +++ b/views/default/forms/profile/edit.php @@ -9,7 +9,7 @@ <div> <label><?php echo elgg_echo('user:name:label'); ?></label> - <?php echo elgg_view('input/text', array('internalname' => 'name', 'value' => $vars['entity']->name)); ?> + <?php echo elgg_view('input/text', array('name' => 'name', 'value' => $vars['entity']->name)); ?> </div> <?php @@ -44,12 +44,12 @@ if (is_array($profile_fields) && count($profile_fields) > 0) { <label><?php echo elgg_echo("profile:{$shortname}") ?></label> <?php $params = array( - 'internalname' => $shortname, + 'name' => $shortname, 'value' => $value, ); echo elgg_view("input/{$valtype}", $params); $params = array( - 'internalname' => "accesslevel[$shortname]", + 'name' => "accesslevel[$shortname]", 'value' => $access_id, ); echo elgg_view('input/access', $params); @@ -61,7 +61,7 @@ if (is_array($profile_fields) && count($profile_fields) > 0) { ?> <div> <?php - echo elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $vars['entity']->guid)); + echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $vars['entity']->guid)); echo elgg_view('input/submit', array('value' => elgg_echo('save'))); ?> </div> diff --git a/views/default/forms/profile/fields/add.php b/views/default/forms/profile/fields/add.php index de43b9ec9..c700cf7f5 100644 --- a/views/default/forms/profile/fields/add.php +++ b/views/default/forms/profile/fields/add.php @@ -8,8 +8,8 @@ $label_text = elgg_echo('profile:label'); $type_text = elgg_echo('profile:type'); -$label_control = elgg_view('input/text', array('internalname' => 'label')); -$type_control = elgg_view('input/pulldown', array('internalname' => 'type', 'options_values' => array( +$label_control = elgg_view('input/text', array('name' => 'label')); +$type_control = elgg_view('input/pulldown', array('name' => 'type', 'options_values' => array( 'text' => elgg_echo('text'), 'longtext' => elgg_echo('longtext'), 'tags' => elgg_echo('tags'), @@ -17,7 +17,7 @@ $type_control = elgg_view('input/pulldown', array('internalname' => 'type', 'opt 'email' => elgg_echo('email') ))); -$submit_control = elgg_view('input/submit', array('internalname' => elgg_echo('add'), 'value' => elgg_echo('add'))); +$submit_control = elgg_view('input/submit', array('name' => elgg_echo('add'), 'value' => elgg_echo('add'))); $formbody = <<< END <p>$label_text: $label_control |