Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
languagevisibility
Commits
08bfaae4
Commit
08bfaae4
authored
Aug 05, 2020
by
Kevin Ditscheid
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature_Upgrade-to-TYPO3-10
parents
2d997d8b
f2d1d45b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
Classes/Element/ElementFactory.php
Classes/Element/ElementFactory.php
+1
-12
No files found.
Classes/Element/ElementFactory.php
View file @
08bfaae4
...
...
@@ -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
->
getElement
Instance
(
RecordElement
::
class
,
$row
);
$element
=
GeneralUtility
::
make
Instance
(
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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment