[BUGFIX] Check for enabled devlog inside devLog() 51/52751/8
authorBenni Mack <benni@typo3.org>
Fri, 19 May 2017 12:24:24 +0000 (14:24 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 14 Jun 2017 06:41:26 +0000 (08:41 +0200)
commit228489ead73f605eb19d3804c2c152ab9fb2c07c
tree81a31c66bf28ab70544f0ebc902db6683720c957
parent7a38dd80b4eb1702662dfbee43a038db9f88b106
[BUGFIX] Check for enabled devlog inside devLog()

Calling GeneralUtility::devLog() can be called but
the method itself should check whether the devlog
is enabled, instead of having third-party code
rely on checking the option with an if statement.

This effectively removes the need for checks on
if (TYPO3_DLOG) and the other two constants TYPO3_ERROR_DLOG
and TYPO3_EXCEPTION_DLOG in all callers' code.

Resolves: #80289
Releases: master, 8.7
Change-Id: Ibaeeca6300bdb37a513a07fb46c2616cfc51c7f2
Reviewed-on: https://review.typo3.org/52751
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/saltedpasswords/Classes/SaltedPasswordService.php