Commit 08bfaae4 authored by Kevin Ditscheid's avatar Kevin Ditscheid

Merge branch 'master' into feature_Upgrade-to-TYPO3-10

parents 2d997d8b f2d1d45b
......@@ -91,7 +91,7 @@ class ElementFactory {
$element = $hookObj->getElementForTable($table, $row['uid'], $row, $overlay_ids);
}
} elseif (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['languagevisibility']['recordElementSupportedTables'][$table])) {
$element = $this->getElementInstance(RecordElement::class, $row);
$element = GeneralUtility::makeInstance(RecordElement::class, $row, $table);
} else {
throw new TableNotSupportedException($table . ' not supported ', 1195039394);
}
......@@ -102,15 +102,4 @@ class ElementFactory {
return $element;
}
/**
* Gets instance depending on TYPO3 version
*
* @param string $name name of the class
* @param array $row row that is used to initialize element instance
* @return Object
*/
private function getElementInstance($name, $row) {
return GeneralUtility::makeInstance($name, $row);
}
}
Markdown is supported
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