diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-04 17:43:04 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-04 17:43:04 +0000 |
commit | 899d26f54d8a89ecb036bf680b54d14d710fdbdc (patch) | |
tree | 2648ce701242277d199866e04faf6c6d89974af6 /views/default/input | |
parent | cad312ba5dac097b0ea277842575298d63ce9085 (diff) | |
download | elgg-899d26f54d8a89ecb036bf680b54d14d710fdbdc.tar.gz elgg-899d26f54d8a89ecb036bf680b54d14d710fdbdc.tar.bz2 |
Button src isn't always required.
git-svn-id: https://code.elgg.org/elgg/trunk@3081 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input')
-rw-r--r-- | views/default/input/button.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/input/button.php b/views/default/input/button.php index 4b49f09b6..6ee4adc0d 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -35,7 +35,7 @@ $value = htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); if (isset($vars['internalname'])) $name = $vars['internalname']; - if (isset($vars['src'])) $src = $vars['src']; + if (isset($vars['src'])) $src = "src=\"{$vars['src']}\""; if (strpos($src,$CONFIG->wwwroot)===false) $src = ""; // blank src if trying to access an offsite image. ?> -<input name="<?php echo $vars['internalname']; ?>" type="<?php echo $type; ?>" class="<?php echo $class; ?>" <?php echo $vars['js']; ?> value="<?php echo $value; ?>" src="<?php echo $src; ?>" />
\ No newline at end of file +<input name="<?php echo $vars['internalname']; ?>" type="<?php echo $type; ?>" class="<?php echo $class; ?>" <?php echo $vars['js']; ?> value="<?php echo $value; ?>" <?php echo $src; ?> />
\ No newline at end of file |