Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_cookie_optin
Commits
7bbedd32
Commit
7bbedd32
authored
Jul 14, 2021
by
Stefan Galinski
🎮
Browse files
[BUGFIX] Don't drop the footer titles. This is not unicode safe.
parent
e24567d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/StaticFileGenerationService.php
View file @
7bbedd32
...
...
@@ -720,25 +720,20 @@ class StaticFileGenerationService implements SingletonInterface {
foreach
(
$navigationEntries
as
$pageData
)
{
$uid
=
(
int
)
$pageData
[
'uid'
];
if
(
$uid
<=
0
)
{
// can be
caused
if the page is not accessible
// can be
happen
if the page is not accessible
continue
;
}
$name
=
$pageData
[
'title'
];
if
(
$currentVersion
>=
9000000
)
{
$site
=
GeneralUtility
::
makeInstance
(
SiteFinder
::
class
)
->
getSiteByPageId
(
$uid
);
$url
=
$this
->
removeCHashFromUrl
(
(
string
)
$site
->
getRouter
()
->
generateUri
(
$uid
,
[
'disableOptIn'
=>
1
,
'_language'
=>
$languageUid
]
)
(
string
)
$site
->
getRouter
()
->
generateUri
(
$uid
,
[
'disableOptIn'
=>
1
,
'_language'
=>
$languageUid
])
);
$title
=
$pageData
[
'title'
];
$name
=
strlen
(
$title
)
>
35
?
substr
(
$title
,
0
,
35
)
.
'...'
:
$title
;
}
else
{
try
{
$url
=
'/'
.
$this
->
removeCHashFromUrl
(
$contentObject
->
getTypoLink_URL
(
$uid
,
'&disableOptIn=1&L='
.
$languageUid
)
);
$name
=
$contentObject
->
crop
(
$pageData
[
'title'
],
35
.
'|...|0'
);
$url
=
$contentObject
->
getTypoLink_URL
(
$uid
,
'&disableOptIn=1&L='
.
$languageUid
);
$url
=
'/'
.
$this
->
removeCHashFromUrl
(
$url
);
}
catch
(
\
Exception
$exception
)
{
// Occurs on the first creation of the translation.
continue
;
...
...
Write
Preview
Supports
Markdown
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