CRM-21195: a little improvment
authorOmar abu hussein <opetmar91@gmail.com>
Tue, 19 Sep 2017 13:36:10 +0000 (14:36 +0100)
committerOmar abu hussein <opetmar91@gmail.com>
Tue, 19 Sep 2017 13:36:10 +0000 (14:36 +0100)
CRM/Core/BAO/Navigation.php

index 80e61bd38332499e3255076f69e8d04c3b208bd3..6f0da66d92e7cc6717dbd65acd9241ad88907a3c 100644 (file)
@@ -528,7 +528,7 @@ FROM civicrm_navigation WHERE domain_id = $domainID {$whereClause} ORDER BY pare
     }
 
     if (!empty($value['attributes']['icon'])) {
-      $menuIcon = '<span class="' . $value['attributes']['icon'] . '"></span>&nbsp;';
+      $menuIcon = sprintf('<span class="%s"></span>&nbsp;',$value['attributes']['icon']);
       $name = $menuIcon . $name;
     }