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/input/access.php | 2 +- views/default/input/checkboxes.php | 18 +++++++++--------- views/default/input/datepicker.php | 6 +++--- views/default/input/password.php | 2 +- views/default/input/plaintext.php | 2 +- views/default/input/radio.php | 2 +- views/default/input/securitytoken.php | 4 ++-- views/default/input/userpicker.php | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) (limited to 'views/default/input') diff --git a/views/default/input/access.php b/views/default/input/access.php index 523c0aaf4..7fa2323bf 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -8,7 +8,7 @@ * * @uses $vars['value'] The current value, if any * @uses $vars['options_values'] - * @uses $vars['internalname'] The name of the input field + * @uses $vars['name'] The name of the input field */ $defaults = array( diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php index 17c8ab8bd..c78fe4db0 100644 --- a/views/default/input/checkboxes.php +++ b/views/default/input/checkboxes.php @@ -6,7 +6,7 @@ * @note This also includes a hidden input with the same name as the checkboxes * to make sure something is sent to the server. The default value is 0. * If using JS, be specific to avoid selecting the hidden default value: - * $('input[type=checkbox][name=internalname]') + * $('input[type=checkbox][name=name]') * * @warning Passing integers as labels does not currently work due to a * deprecated hack that will be removed in Elgg 1.9. To use integer labels, @@ -15,11 +15,11 @@ * @package Elgg * @subpackage Core * - * @uses string $vars['internalname'] The name of the input fields + * @uses string $vars['name'] The name of the input fields * (Forced to an array by appending []) * @uses array $vars['options'] An array of strings representing the * label => option for the each checkbox field - * @uses string $vars['internalid'] The id for each input field. Optional. + * @uses string $vars['id'] The id for each input field. Optional. * (Only use this with a single value.) * @uses string $vars['default'] The default value to send if nothing is checked. * Optional, defaults to 0. Set to FALSE for no default. @@ -34,11 +34,11 @@ $additional_class = elgg_extract('class', $vars); $align = elgg_extract('align', $vars, 'vertical'); $value = (isset($vars['value'])) ? $vars['value'] : NULL; $value_array = (is_array($value)) ? array_map('elgg_strtolower', $value) : array(elgg_strtolower($value)); -$internalname = (isset($vars['internalname'])) ? $vars['internalname'] : ''; +$name = (isset($vars['name'])) ? $vars['name'] : ''; $options = (isset($vars['options']) && is_array($vars['options'])) ? $vars['options'] : array(); $default = (isset($vars['default'])) ? $vars['default'] : 0; -$id = (isset($vars['internalid'])) ? $vars['internalid'] : ''; +$id = (isset($vars['id'])) ? $vars['id'] : ''; $disabled = (isset($vars['disabled'])) ? $vars['disabled'] : FALSE; $js = (isset($vars['js'])) ? $vars['js'] : ''; @@ -49,8 +49,8 @@ if ($additional_class) { if ($options && count($options) > 0) { // include a default value so if nothing is checked 0 will be passed. - if ($internalname && $default !== FALSE) { - echo ""; + if ($name && $default !== FALSE) { + echo ""; } echo "