[TASK] Replace icon by IconFactory: extensions-scheduler-run-task 16/43216/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 11 Sep 2015 18:07:31 +0000 (20:07 +0200)
committerNicole Cordes <typo3@cordes.co>
Sat, 12 Sep 2015 10:32:35 +0000 (12:32 +0200)
Resolves: #69686
Releases: master
Change-Id: Iab48d87f2b10dfff239f5ab18b151004ef5cdcb0
Reviewed-on: http://review.typo3.org/43216
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index fce09b3..7fc12b1 100644 (file)
@@ -672,6 +672,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'refresh',
                        )
                ),
+               'extensions-scheduler-run-task' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'play-circle',
+                       )
+               ),
 
                // specials
                'empty-empty' => array(
index 2aef742..fa205f7 100644 (file)
@@ -982,7 +982,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                                                . ' title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:stop', TRUE) . '" class="icon">' .
                                                $this->iconFactory->getIcon('actions-document-close', Icon::SIZE_SMALL) . '</a>';
                                        $runAction = '<a class="btn btn-default" href="' . htmlspecialchars($this->moduleUri . '&tx_scheduler[execute][]=' . $schedulerRecord['uid']) . '" title="' . $this->getLanguageService()->getLL('action.run_task', TRUE) . '" class="icon">' .
-                                               IconUtility::getSpriteIcon('extensions-scheduler-run-task') . '</a>';
+                                               $this->iconFactory->getIcon('extensions-scheduler-run-task', Icon::SIZE_SMALL)->render() . '</a>';
 
                                        // Define some default values
                                        $lastExecution = '-';