MINOR: be more specific with background class for menu

This commit is contained in:
Stevie Mayhew 2015-08-07 13:22:57 +12:00
parent 6a45f4a1e1
commit ea7b0714c2

View File

@ -556,7 +556,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
$icon = Config::inst()->get($class, 'menu_icon', Config::FIRST_SET); $icon = Config::inst()->get($class, 'menu_icon', Config::FIRST_SET);
if (!empty($icon)) { if (!empty($icon)) {
$class = strtolower(Convert::raw2htmlname(str_replace('\\', '-', $class))); $class = strtolower(Convert::raw2htmlname(str_replace('\\', '-', $class)));
return ".icon.icon-16.icon-{$class} { background: url('{$icon}'); } "; return ".icon.icon-16.icon-{$class} { background-image: url('{$icon}'); } ";
} }
return ''; return '';
} }