Skip to content
Snippets Groups Projects
Commit ca332503 authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Nicole Cordes
Browse files

[FOLLOWUP][TASK] Replace icon "status-status-permission-denied" with the new IconFactory

This reverts a wrongly introduced getIcon() call.

Resolves: #69692
Releases: master
Change-Id: I80ec5307278c6b289fba60631ad36eddf7951df4
Reviewed-on: http://review.typo3.org/43235


Reviewed-by: default avatarNicole Cordes <typo3@cordes.co>
Tested-by: default avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: default avatarBenjamin Kott <info@bk2k.info>
Tested-by: default avatarBenjamin Kott <info@bk2k.info>
parent b9a32fe7
Branches
Tags
No related merge requests found
......@@ -15,8 +15,6 @@ namespace TYPO3\CMS\Beuser\ViewHelpers;
*/
use TYPO3\CMS\Backend\Utility\IconUtility;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
......@@ -69,13 +67,11 @@ class PermissionsViewHelper extends AbstractViewHelper implements CompilableInte
static public function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
// The two main icon classes are static during one call. They trigger relatively expensive
// calculation with a signal and object creation and thus make sense to have them cached.
/** @var IconFactory $iconFactory */
$iconFactory = GeneralUtility::makeInstance(IconFactory::class);
if (!static::$grantedCssClasses) {
static::$grantedCssClasses = IconUtility::getSpriteIconClasses('status-status-permission-granted');
}
if (!static::$deniedCssClasses) {
static::$deniedCssClasses = $iconFactory->getIcon('status-status-permission-denied')->render();
static::$deniedCssClasses = IconUtility::getSpriteIconClasses('status-status-permission-denied');
}
$masks = array(1, 16, 2, 4, 8);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment