Fixed bug #14989: Use TYPO3_REQUESTTYPE consistently for CLI calls detection
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / cli / scheduler_cli_dispatch.php
index 2de1a7d..f504c1d 100644 (file)
@@ -32,7 +32,7 @@
  *
  * $Id$
  */
-if (defined('TYPO3_cliMode') && TYPO3_cliMode && basename(PATH_thisScript) == 'cli_dispatch.phpsh') {
+if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) && basename(PATH_thisScript) == 'cli_dispatch.phpsh') {
        $hasTask = true;
                // Create an instance of the scheduler object
                /**