Skip to content
Snippets Groups Projects
Commit bf9df487 authored by Georg Ringer's avatar Georg Ringer Committed by Andreas Fernandez
Browse files

[BUGFIX] Initialize ModuleTemplate in VersionModuleController

The ModuleTemplate must be initilized in the
VersionModuleController to avoid fatal errors.

Change-Id: I0d2c0087ff0f6e0e4f6a5cf57adf9a80485179bb
Resolves: #71059
Releases: master
Reviewed-on: https://review.typo3.org/44308


Reviewed-by: default avatarXavier Perseguers <xavier@typo3.org>
Tested-by: default avatarXavier Perseguers <xavier@typo3.org>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
parent 1fc1ba42
Branches
Tags
No related merge requests found
...@@ -21,6 +21,7 @@ use TYPO3\CMS\Core\Utility\ArrayUtility; ...@@ -21,6 +21,7 @@ use TYPO3\CMS\Core\Utility\ArrayUtility;
use TYPO3\CMS\Core\Utility\DiffUtility; use TYPO3\CMS\Core\Utility\DiffUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\Template\ModuleTemplate;
/** /**
* Versioning module, including workspace management * Versioning module, including workspace management
...@@ -113,6 +114,13 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass ...@@ -113,6 +114,13 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
*/ */
protected $moduleName = 'web_txversionM1'; protected $moduleName = 'web_txversionM1';
/**
* ModuleTemplate object
*
* @var ModuleTemplate
*/
protected $moduleTemplate;
/** /**
* Initialize language files * Initialize language files
*/ */
...@@ -120,6 +128,7 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass ...@@ -120,6 +128,7 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
{ {
$GLOBALS['SOBE'] = $this; $GLOBALS['SOBE'] = $this;
$GLOBALS['LANG']->includeLLFile('EXT:version/Resources/Private/Language/locallang.xlf'); $GLOBALS['LANG']->includeLLFile('EXT:version/Resources/Private/Language/locallang.xlf');
$this->moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
} }
/** /**
......
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