Commit fb6404cc authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Unsetting modes in Backend Controller

parent 4af8ea76
......@@ -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'));
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment