From 899d26f54d8a89ecb036bf680b54d14d710fdbdc Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Mar 2009 17:43:04 +0000 Subject: Button src isn't always required. git-svn-id: https://code.elgg.org/elgg/trunk@3081 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/button.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views') 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. ?> - value="" src="" /> \ No newline at end of file + value="" /> \ No newline at end of file -- cgit v1.2.3