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
5844da0f
Commit
5844da0f
authored
Jun 17, 2020
by
Fabio Stegmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Fix page id determination
parent
9d956fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Classes/Element/Language.php
Classes/Element/Language.php
+7
-1
No files found.
Classes/Element/Language.php
View file @
5844da0f
...
...
@@ -92,8 +92,14 @@ class Language {
$siteFinder
=
GeneralUtility
::
makeInstance
(
SiteFinder
::
class
);
if
(
$contextElement
->
getTable
()
===
'pages'
)
{
$pid
=
$contextElement
->
getUid
();
}
else
{
$pid
=
$contextElement
->
getPid
();
}
try
{
$site
=
$siteFinder
->
getSiteByPageId
(
$
contextElement
->
getPid
()
);
$site
=
$siteFinder
->
getSiteByPageId
(
$
pid
);
}
catch
(
\
Exception
$e
)
{
return
[];
}
...
...
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