|
@@ -23,7 +23,7 @@ discard block |
|
|
block discarded – undo |
|
23
|
23
|
|
|
24
|
24
|
public function access() { |
|
25
|
25
|
$registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Registry::class); |
|
26
|
|
- $version = $registry->get('tx_dpf','updatescript-'.self::VERSION); |
|
|
26
|
+ $version = $registry->get('tx_dpf', 'updatescript-' . self::VERSION); |
|
27
|
27
|
|
|
28
|
28
|
// If the version has already been registered in the table sys_register the updatscript will be blocked. |
|
29
|
29
|
if ($version) { |
|
@@ -36,7 +36,7 @@ discard block |
|
|
block discarded – undo |
|
36
|
36
|
public function main() { |
|
37
|
37
|
// This script registers itself into the sys_registry table to prevent a re-run with the same version number. |
|
38
|
38
|
$registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Registry::class); |
|
39
|
|
- $registry->set('tx_dpf','updatescript-'.self::VERSION,TRUE); |
|
|
39
|
+ $registry->set('tx_dpf', 'updatescript-' . self::VERSION, TRUE); |
|
40
|
40
|
|
|
41
|
41
|
return "Das Updatescript wurde erfolgreich ausgeführt."; |
|
42
|
42
|
} |
Please login to merge, or discard this patch.