From b7fa48295c128552cc570a446dc15006c885c84f Mon Sep 17 00:00:00 2001 From: Michael Oehlhof Date: Fri, 4 Sep 2015 22:19:58 +0200 Subject: [PATCH] [TASK] Replace sprite icon "actions-document-save-new" with IconFactory Replaces all IconUtility::getSpriteIcon calls for the icon actions-document-save-new with the new IconFactory. Resolves: #68868 Releases: master Change-Id: I8dfeed0a1299a69b3e892da6c38c56e16dceda82 Reviewed-on: http://review.typo3.org/43043 Reviewed-by: Daniel Goerz Tested-by: Daniel Goerz Reviewed-by: Xavier Perseguers Tested-by: Xavier Perseguers --- .../backend/Classes/Controller/EditDocumentController.php | 3 ++- typo3/sysext/core/Classes/Imaging/IconRegistry.php | 6 ++++++ .../Classes/Controller/SchedulerModuleController.php | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index ab859f8bafff..378a1fa0cd17 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -1149,7 +1149,8 @@ class EditDocumentController implements \TYPO3\CMS\Core\Http\ControllerInterface } // SAVE / NEW button: if (count($this->elementsData) === 1 && $this->getNewIconMode($this->firstEl['table'])) { - $buttons['save_new'] = IconUtility::getSpriteIcon('actions-document-save-new', array('html' => '')); + $iconSaveNew = $iconFactory->getIcon('actions-document-save-new', Icon::SIZE_SMALL); + $buttons['save_new'] = ''; } // SAVE / CLOSE $iconSaveClose = $iconFactory->getIcon('actions-document-save-close', Icon::SIZE_SMALL); diff --git a/typo3/sysext/core/Classes/Imaging/IconRegistry.php b/typo3/sysext/core/Classes/Imaging/IconRegistry.php index 20f56760bb39..0dfefdb6e0da 100644 --- a/typo3/sysext/core/Classes/Imaging/IconRegistry.php +++ b/typo3/sysext/core/Classes/Imaging/IconRegistry.php @@ -148,6 +148,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface { 'source' => 'EXT:t3skin/images/icons/actions/document-save-close.png' ) ), + 'actions-document-save-new' => array( + 'provider' => BitmapIconProvider::class, + 'options' => array( + 'source' => 'EXT:t3skin/images/icons/actions/document-save-new.png' + ) + ), 'actions-document-synchronize' => array( 'provider' => BitmapIconProvider::class, 'options' => array( diff --git a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php index 9cf0be400ecc..2d77dda35595 100644 --- a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php +++ b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php @@ -1533,7 +1533,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas $buttons['close'] = '' . $this->iconFactory->getIcon('actions-document-close', Icon::SIZE_SMALL) . ''; $buttons['save'] = ''; $buttons['saveclose'] = ''; - $buttons['savenew'] = ''; + $buttons['savenew'] = ''; } if ($this->CMD === 'edit') { $buttons['delete'] = ''; -- 2.20.1