From af2f3805095f8a91d85847e11faeb280fddf58c0 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 15 Feb 2011 01:27:40 +0000 Subject: Fixes #2921: converted internalname => name and internalid => id git-svn-id: http://code.elgg.org/elgg/trunk@8249 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/forms/profile/edit.php | 8 ++++---- views/default/forms/profile/fields/add.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'views/default/forms/profile') 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 @@
- 'name', 'value' => $vars['entity']->name)); ?> + 'name', 'value' => $vars['entity']->name)); ?>
0) { $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) { ?>
'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'))); ?>
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

$label_text: $label_control -- cgit v1.2.3