[TASK] Replace icon by IconFactory: status-status-permission-granted 26/43226/3
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 12 Sep 2015 08:12:19 +0000 (10:12 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 12 Sep 2015 10:11:55 +0000 (12:11 +0200)
Resolves: #69693
Releases: master
Change-Id: Ic6f9a5c99b547e7f22ce0d72d22a833af044a5c3
Reviewed-on: http://review.typo3.org/43226
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/beuser/Classes/Controller/PermissionAjaxController.php

index 133a3e1..180034e 100644 (file)
@@ -298,18 +298,20 @@ class PermissionAjaxController {
                GeneralUtility::logDeprecatedFunction();
                $str = '';
                $permissions = array(1, 16, 2, 4, 8);
+               /** @var IconFactory $iconFactory */
+               $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
                foreach ($permissions as $permission) {
                        if ($int & $permission) {
-                               $str .= IconUtility::getSpriteIcon('status-status-permission-granted', array(
-                                       'title' => $GLOBALS['LANG']->getLL($permission, TRUE),
-                                       'class' => 'change-permission text-success',
-                                       'data-page' => $pageId,
-                                       'data-permissions' => $int,
-                                       'data-mode' => 'delete',
-                                       'data-who' => $who,
-                                       'data-bits' => $permission,
-                                       'style' => 'cursor:pointer'
-                               ));
+                               $str .= '<span title="' . $GLOBALS['LANG']->getLL($permission, TRUE)
+                                       . ' class="change-permission text-success"'
+                                       . ' data-page="' . $pageId . '"'
+                                       . ' data-permissions="' . $int . '"'
+                                       . ' data-mode="delete"'
+                                       . ' data-who="' . $who . '"'
+                                       . ' data-bits="' . $permission . '"'
+                                       . ' style="cursor:pointer">'
+                                       . $iconFactory->getIcon('status-status-permission-granted', Icon::SIZE_SMALL)
+                                       . '</span>';
                        } else {
                                $str .= IconUtility::getSpriteIcon('status-status-permission-denied', array(
                                        'title' => $GLOBALS['LANG']->getLL($permission, TRUE),