diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-21 07:14:51 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-21 07:14:51 -0400 |
commit | 4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2 (patch) | |
tree | 0779d4f8a2f1ed074b975076372406042029985c /views/installation/input/text.php | |
parent | bd08504b16ee636eda1b30676799efc22a915613 (diff) | |
download | elgg-4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2.tar.gz elgg-4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2.tar.bz2 |
cleaned up input views for installation so that no notices are thrown
Diffstat (limited to 'views/installation/input/text.php')
-rw-r--r-- | views/installation/input/text.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/views/installation/input/text.php b/views/installation/input/text.php index ec8233461..375b91c44 100644 --- a/views/installation/input/text.php +++ b/views/installation/input/text.php @@ -6,20 +6,15 @@ * @uses $vars['value'] The current value, if any * @uses $vars['name'] The name of the input field * @uses $vars['class'] CSS class - * @uses $vars['id'] CSS id */ if (isset($vars['class'])) { $class = "class=\"{$vars['class']}\""; } else { - $class = ""; + $class = "elgg-input-text"; } -if (isset($vars['id'])) { - $id = "id=\"{$vars['id']}\""; -} else { - $id = ''; -} +$value = htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?> -<input type="text" name="<?php echo $vars['name']; ?>" value="<?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?>" <?php echo $class; ?> <?php echo $id; ?>/>
\ No newline at end of file +<input type="text" name="<?php echo $vars['name']; ?>" value="<?php echo $value; ?>" <?php echo $class; ?> />
\ No newline at end of file |