[BUGFIX] Avoid unnecessary I/O in GeneralUtility::createVersionNumberedFilename() 21/54221/3
authorFaton Haliti <fha@systime.dk>
Wed, 27 Sep 2017 07:56:13 +0000 (09:56 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 29 Sep 2017 15:55:13 +0000 (17:55 +0200)
commitaa7dcb6573789a5012ed0026b0f69f37e86a6280
tree8ca0ce9fdf5eb3c6ac73422f46ee3f6723e1d9d5
parentc74db5cd2d6e0fa25bfb35562ca3e9ce10b9607c
[BUGFIX] Avoid unnecessary I/O in GeneralUtility::createVersionNumberedFilename()

With this commit we prevent to check for existence of file
when we don't need to, because mode is not either 'embed' or
'querystring'

Resolves: #82565
Releases: master, 8.7
Change-Id: I829b8e87d951a6f170bc03d8b7836f671b51bdf4
Reviewed-on: https://review.typo3.org/54221
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anders Kostending <aha@systime.dk>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Wolfgang Klinger <wolfgang@wazum.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php