[BUGFIX] Use API to register AJAX handler for recycler 62/38862/3
authorMarkus Klein <klein.t3@reelworx.at>
Wed, 22 Apr 2015 19:15:02 +0000 (21:15 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 23 Apr 2015 09:04:35 +0000 (11:04 +0200)
Releases: master
Resolves: #66546
Change-Id: Ic64205454a511efbd2b32a1eb7763e4ff0a653fd
Reviewed-on: http://review.typo3.org/38862
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/recycler/ext_localconf.php

index 18ac04f..a665fc3 100644 (file)
@@ -4,11 +4,14 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('RecyclerAjaxController::dispatch', \TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::class . '->dispatch');
 }
-$GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['RecyclerAjaxController::init'] = \TYPO3\CMS\Recycler\Task\CleanerTask::class . '->init';
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
+       'RecyclerAjaxController::init',
+       \TYPO3\CMS\Recycler\Task\CleanerTask::class . '->init'
+);
 
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Recycler\Task\CleanerTask::class] = array(
        'extension' => 'recycler',
        'title' => 'LLL:EXT:recycler/Resources/Private/Language/locallang_tasks.xlf:cleanerTaskTitle',
        'description' => 'LLL:EXT:recycler/Resources/Private/Language/locallang_tasks.xlf:cleanerTaskDescription',
        'additionalFields' => \TYPO3\CMS\Recycler\Task\CleanerFieldProvider::class
-);
\ No newline at end of file
+);