aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/input/submit.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/views/default/input/submit.php b/views/default/input/submit.php
index dd520fa8e..315a70eac 100644
--- a/views/default/input/submit.php
+++ b/views/default/input/submit.php
@@ -6,20 +6,11 @@
*
* @package Elgg
* @subpackage Core
- *
- * @uses $vars['value'] The current value, if any
- * @uses $vars['js'] Any Javascript to enter into the input tag
- * @uses $vars['internalname'] The name of the input field
- * @uses $vars['type'] Submit or reset, defaults to submit.
- *
*/
$vars['type'] = 'submit';
-if (isset($vars['class'])) {
- $class = $vars['class'];
-} else {
- $class = "submit_button";
+if (!isset($vars['class'])) {
+ $vars['class'] = "submit_button";
}
-$vars['class'] = $class;
echo elgg_view('input/button', $vars); \ No newline at end of file