Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3.org
Commits
fa285e8c
Commit
fa285e8c
authored
Jun 15, 2020
by
Thomas Löffler
Browse files
Remove possible slashes from slug when modifying for events
parent
ad7152bb
Pipeline
#9020
failed with stages
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/t3org_layout/Classes/Hook/DataHandlerHook.php
View file @
fa285e8c
...
...
@@ -107,7 +107,7 @@ class DataHandlerHook
{
$slug
=
$params
[
'slug'
];
if
(
$params
[
'record'
][
'startdate'
])
{
$slug
=
date
(
'Ymd'
,
strtotime
(
$params
[
'record'
][
'startdate'
]))
.
'-'
.
$params
[
'record'
][
'title'
];
$slug
=
date
(
'Ymd'
,
strtotime
(
$params
[
'record'
][
'startdate'
]))
.
'-'
.
str_replace
(
'/'
,
'-'
,
$params
[
'record'
][
'title'
]
)
;
}
return
$slug
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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