diff --git a/View/Helper/ButtonHelper.php b/View/Helper/ButtonHelper.php index 8c6ee141..eeb8f1d7 100644 --- a/View/Helper/ButtonHelper.php +++ b/View/Helper/ButtonHelper.php @@ -69,9 +69,11 @@ public function getButtonSize() { */ public function button($title, $options = array()) { $icon = Hash::get($options, 'icon'); - $title = ''; if ($icon) { + if (Hash::get($options, 'mobileHide')) { + $title = ''; + } $title = ' ' . $title; $options = Hash::remove($options, 'icon'); $options = Hash::insert($options, 'escape', false);