Fixed bug #14989: Use TYPO3_REQUESTTYPE consistently for CLI calls detection
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / class.tx_scheduler_task.php
index c50156a..2f9d439 100755 (executable)
@@ -325,7 +325,7 @@ abstract class tx_scheduler_Task {
 
                        // Define the context in which the script is running
                $context = 'BE';
-               if (defined('TYPO3_cliMode') && TYPO3_cliMode) {
+               if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
                        $context = 'CLI';
                }