mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: be more specific with background class for menu
This commit is contained in:
parent
6a45f4a1e1
commit
ea7b0714c2
@ -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 '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user