[TYPO3-core] RFC #14989: Code cleanup: Use TYPO3_REQUESTTYPE consistently for CLI calls detection

François Suter fsu-lists at cobweb.ch
Sun Jul 4 09:56:56 CEST 2010


Hi,

> Problem:
> 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.
>
> Solution:
> Replace tests as indicated above

Thanks for all the reviews. Committed to trunk in revision 8084.

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list