From d0870700ecafe28663188c80157a91fc83221fe3 Mon Sep 17 00:00:00 2001 From: Stephanie Gray Date: Wed, 30 Sep 2015 12:23:40 -0400 Subject: [PATCH] CRM-16415 - updated crmButton so that there is no empty space if there are no additional classes specified --- CRM/Core/Smarty/plugins/block.crmButton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Smarty/plugins/block.crmButton.php b/CRM/Core/Smarty/plugins/block.crmButton.php index fa98b5e41f..4833e7934a 100644 --- a/CRM/Core/Smarty/plugins/block.crmButton.php +++ b/CRM/Core/Smarty/plugins/block.crmButton.php @@ -52,7 +52,7 @@ function smarty_block_crmButton($params, $text, &$smarty) { $params['href'] = CRM_Utils_System::crmURL($params + array('h' => FALSE)); } // Always add class 'button' - fixme probably should be crm-button - $params['class'] = 'button ' . CRM_Utils_Array::value('class', $params, ''); + $params['class'] = empty($params['class']) ? 'button' : 'button ' . $params['class']; // Any jQuery-UI icon works $icon = CRM_Utils_Array::value('icon', $params, 'pencil'); // All other params are treated as html attributes -- 2.25.1