diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 01:05:45 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 01:05:45 +0000 |
commit | 9ce11d138f9868b872fe8206dbc3c2f44723605a (patch) | |
tree | 273a2aed762c62eea3ac329649b42326a2d91438 /views/default/input | |
parent | 76e70b79acc60358a7225c0976fd6b7f2fe3c74f (diff) | |
download | elgg-9ce11d138f9868b872fe8206dbc3c2f44723605a.tar.gz elgg-9ce11d138f9868b872fe8206dbc3c2f44723605a.tar.bz2 |
Fixes #2808: elgg_get_array_value => elgg_extract
git-svn-id: http://code.elgg.org/elgg/trunk@8247 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input')
-rw-r--r-- | views/default/input/checkboxes.php | 4 | ||||
-rw-r--r-- | views/default/input/radio.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php index f501ea36e..17c8ab8bd 100644 --- a/views/default/input/checkboxes.php +++ b/views/default/input/checkboxes.php @@ -30,8 +30,8 @@ * */ -$additional_class = elgg_get_array_value('class', $vars); -$align = elgg_get_array_value('align', $vars, 'vertical'); +$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'] : ''; diff --git a/views/default/input/radio.php b/views/default/input/radio.php index 93db2f637..fbfc9c5a1 100644 --- a/views/default/input/radio.php +++ b/views/default/input/radio.php @@ -18,8 +18,8 @@ * @uses $vars['align'] 'horizontal' or 'vertical' Default: 'vertical' */ -$additional_class = elgg_get_array_value('class', $vars); -$align = elgg_get_array_value('align', $vars, 'vertical'); +$additional_class = elgg_extract('class', $vars); +$align = elgg_extract('align', $vars, 'vertical'); $class = "elgg-input-radio elgg-$align"; if ($additional_class) { $class = " $additional_class"; |