Skip to content

Commit

Permalink
[TASK] check if objectmanager is set
Browse files Browse the repository at this point in the history
  • Loading branch information
butu committed Sep 17, 2018
1 parent 511cd88 commit b999e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Helper/InlineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ public function addFilesToData(&$data, $table = "tt_content")
if (!is_numeric($uid)) {
return;
}

$fieldHelper = GeneralUtility::makeInstance('MASK\\Mask\\Helper\\FieldHelper');
if (!$this->objectManager) {
$this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
}

$storage = $this->storageRepository->load();
/* @var $fileRepository \TYPO3\CMS\Core\Resource\FileRepository */
Expand Down

0 comments on commit b999e42

Please sign in to comment.