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
Oliver Eglseder
lfeditor
Commits
fb6404cc
Commit
fb6404cc
authored
Jan 29, 2018
by
Torsten Oppermann
Browse files
[TASK] Unsetting modes in Backend Controller
parent
4af8ea76
Changes
1
Show whitespace changes
Inline
Side-by-side
Classes/Controller/AbstractBackendController.php
View file @
fb6404cc
...
...
@@ -181,6 +181,18 @@ abstract class AbstractBackendController extends AbstractController {
'l10n'
=>
LocalizationUtility
::
translate
(
'select.editingMode.l10n'
,
'lfeditor'
),
'override'
=>
LocalizationUtility
::
translate
(
'select.editingMode.override'
,
'lfeditor'
),
);
$backendConfiguration
=
unserialize
(
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'EXT'
][
'extConf'
][
'lfeditor'
]);
if
((
int
)
$backendConfiguration
[
'editModeExtension'
]
===
0
)
{
unset
(
$editingModeOptions
[
'extension'
]);
}
if
((
int
)
$backendConfiguration
[
'editModeL10n'
]
===
0
)
{
unset
(
$editingModeOptions
[
'l10n'
]);
}
if
((
int
)
$backendConfiguration
[
'editModeOverride'
]
===
0
)
{
unset
(
$editingModeOptions
[
'override'
]);
}
$this
->
setLastCalledControllerActionPair
();
$this
->
view
->
assign
(
'editingMode'
,
$this
->
session
->
getDataByKey
(
'editingMode'
));
$this
->
view
->
assign
(
'editingModeOptions'
,
$editingModeOptions
);
...
...
@@ -189,5 +201,3 @@ abstract class AbstractBackendController extends AbstractController {
$this
->
view
->
assign
(
'canChangeEditingModes'
,
$this
->
session
->
getDataByKey
(
'canChangeEditingModes'
));
}
}
?>
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