From 60b9806ea9085ce9845dfe01c5fc5f3b19dd87cc Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 12 Feb 2011 04:01:36 +0000 Subject: Refs #2143: DRYed up input/password git-svn-id: http://code.elgg.org/elgg/trunk@8142 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/password.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/views/default/input/password.php b/views/default/input/password.php index 86bae9c7f..1bd70a419 100644 --- a/views/default/input/password.php +++ b/views/default/input/password.php @@ -12,10 +12,13 @@ * */ -$class = $vars['class']; -if (!$class) { - $class = "elgg-input-password"; -} +$defaults = array( + 'class' => 'elgg-input-password', + 'disabled' => FALSE, + +) + +$attrs = array_merge($defaults, $vars); ?> - name="" value="" class="" /> \ No newline at end of file + /> \ No newline at end of file -- cgit v1.2.3