[TASK] Replace icon by IconFactory: status-status-edit-read-only 48/43248/7
authorJan Helke <typo3@helke.de>
Sat, 12 Sep 2015 17:33:57 +0000 (19:33 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 14 Sep 2015 15:05:04 +0000 (17:05 +0200)
Releases: master
Resolves: #69739
Change-Id: Idb8a51532935d683e3cbfc2190bf41cea528ea69
Reviewed-on: http://review.typo3.org/43248
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index 80f4554..bea9bcd 100644 (file)
@@ -2003,10 +2003,8 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
         * @return string IMG tag for icon.
         */
        public function noEditIcon($label = 'noEditItems') {
-               return IconUtility::getSpriteIcon(
-                       'status-edit-read-only',
-                       array('title' => $this->getLanguageService()->getLL($label, TRUE))
-               );
+               $title = $this->getLanguageService()->getLL($label, TRUE);
+               return '<span title="' . $title . '">' . $this->iconFactory->getIcon('status-status-edit-read-only', Icon::SIZE_SMALL)->render() . '</span>';
        }
 
        /**
index 1f39f36..3020d00 100644 (file)
@@ -823,6 +823,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'source' => 'EXT:t3skin/images/icons/status/status-reference-soft.png',
                        )
                ),
+               'status-status-edit-read-only' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/status/status-edit-read-only.png',
+                       )
+               ),
 
                // Mimetypes
                'mimetypes-text-html' => array(