aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/input/button.php4
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