From 008644017462ff0848a3d047d4656762c13c0364 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 06:41:44 +0000 Subject: Refs #2143: Cleaned up input/submit git-svn-id: http://code.elgg.org/elgg/trunk@7360 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/submit.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'views') 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 -- cgit v1.2.3