[TASK] Replace sprite icon "actions-system-shortcut-new" with IconFactory
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Backend / ToolbarItems / ShortcutToolbarItem.php
index f4c0c4a..9051821 100644 (file)
@@ -181,9 +181,7 @@ class ShortcutToolbarItem implements ToolbarItemInterface {
                if (count($shortcutMenu) === 2) {
                        // No shortcuts added yet, show a small help message how to add shortcuts
                        $title = $languageService->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.bookmarks', TRUE);
-                       $icon = IconUtility::getSpriteIcon('actions-system-shortcut-new', array(
-                               'title' => $title
-                       ));
+                       $icon = '<span title="' . $title . '">' . $this->iconFactory->getIcon('actions-system-shortcut-new', Icon::SIZE_SMALL) . '</span>';
                        $label = str_replace('%icon%', $icon, $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:bookmarkDescription'));
                        $compiledShortcutMenu = '<p>' . $label . '</p>';
                } else {