From ccb355fd153348af5e009f13adeef0fb0a5338f7 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Thu, 14 Sep 2017 23:11:49 +0200 Subject: [PATCH] Scheduler tasks are only valid for backend. So register them for BE only --- html/typo3conf/ext/ter/ext_localconf.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/html/typo3conf/ext/ter/ext_localconf.php b/html/typo3conf/ext/ter/ext_localconf.php index 77ccd4d9..873ad3dc 100755 --- a/html/typo3conf/ext/ter/ext_localconf.php +++ b/html/typo3conf/ext/ter/ext_localconf.php @@ -6,9 +6,11 @@ if (!defined('TYPO3_MODE')) { \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi1/class.tx_ter_pi1.php', '_pi1', 'list_type', 0); // Register core version update task -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\Ter\Task\UpdateCurrentVersionListTask::class] = [ - 'extension' => $_EXTKEY, - 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:tx_ter_updateCurrentVersionListTask.name', - 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:tx_ter_updateCurrentVersionListTask.description', - 'additionalFields' => '', -]; +if (TYPO3_MODE === 'BE') { + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\Ter\Task\UpdateCurrentVersionListTask::class] = [ + 'extension' => $_EXTKEY, + 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:tx_ter_updateCurrentVersionListTask.name', + 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:tx_ter_updateCurrentVersionListTask.description', + 'additionalFields' => '' + ]; +} -- GitLab