Project

General

Profile

Actions

Bug #23091

closed

Use TYPO3_REQUESTTYPE consistently for CLI calls detection

Added by Francois Suter over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-07-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Throughout the core, a CLI call is identified using the following test:

defined('TYPO3_cliMode') && TYPO3_cliMode

although t3lib/config_default.php harmonizes all request types into a single constant called TYPO3_REQUESTTYPE. This means the above test can be replaced by:

TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI

to be consistent.

An exception is 2 t3lib_div methods, because we cannot be sure that t3lib/config_default.php has been called beforehand, so TYPO3_REQUESTTYPE may not be defined.

(issue imported from #M14989)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #23095: Use TYPO3_REQUESTTYPE also for Install Tool accessClosedFrancois Suter2010-07-04

Actions
Actions

Also available in: Atom PDF