aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/input/reset.php9
-rw-r--r--views/default/input/submit.php2
2 files changed, 4 insertions, 7 deletions
diff --git a/views/default/input/reset.php b/views/default/input/reset.php
index d0eb06709..082da8669 100644
--- a/views/default/input/reset.php
+++ b/views/default/input/reset.php
@@ -5,15 +5,10 @@
* @package Elgg
* @subpackage Core
*
- * @uses $vars['class'] Additional CSS class
+ * @uses $vars['class'] CSS class that replaces elgg-button-cancel
*/
-if (isset($vars['class'])) {
- $vars['class'] = "elgg-button-cancel {$vars['class']}";
-} else {
- $vars['class'] = "elgg-button-cancel";
-}
-
$vars['type'] = 'reset';
+$vars['class'] = elgg_extract('class', $vars, 'elgg-button-cancel');
echo elgg_view('input/button', $vars); \ No newline at end of file
diff --git a/views/default/input/submit.php b/views/default/input/submit.php
index 64b135afa..df369b3b4 100644
--- a/views/default/input/submit.php
+++ b/views/default/input/submit.php
@@ -4,6 +4,8 @@
*
* @package Elgg
* @subpackage Core
+ *
+ * @uses $vars['class'] CSS class that replaces elgg-button-submit
*/
$vars['type'] = 'submit';