Commit 77d74302 authored by Wouter Wolters's avatar Wouter Wolters Committed by Georg Ringer
Browse files

[TASK] Remove undefined property iconFactory from EditFileController

The property is not defined at all. We can retrieve the iconFactory
from the moduleTemplate.

Resolves: #78662
Releases: master
Change-Id: Id51ac702b9a9e57d731014e86e1637632aadcb38

Reviewed-by: Frank Nägler's avatarFrank Naegler <>
Tested-by: Frank Nägler's avatarFrank Naegler <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
parent 89a81466
......@@ -21,7 +21,6 @@ use TYPO3\CMS\Backend\Template\Components\ButtonBar;
use TYPO3\CMS\Backend\Template\DocumentTemplate;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -84,7 +83,6 @@ class EditFileController extends AbstractModule
public function __construct()
$this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
$GLOBALS['SOBE'] = $this;
......@@ -120,7 +118,7 @@ class EditFileController extends AbstractModule
// Setting the title and the icon
$icon = $this->iconFactory->getIcon('apps-filetree-root', Icon::SIZE_SMALL)->render();
$icon = $this->moduleTemplate->getIconFactory()->getIcon('apps-filetree-root', Icon::SIZE_SMALL)->render();
$this->title = $icon
. htmlspecialchars(
Supports Markdown
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