[BUGFIX] compressJs returns wrong filenames 09/21409/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 16 May 2013 18:23:00 +0000 (20:23 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 29 Jun 2013 10:56:53 +0000 (12:56 +0200)
commit77d5c6390a17b8d950904de05e57abec2007e11c
tree587f0c4ed9835279cadd5cf68a35517b0c14b7be
parentc3808a6987f883d8a88dba665f31688bfe26af1e
[BUGFIX] compressJs returns wrong filenames

If you enable
    config.concatenateJs = 1
    config.compressJs = 1
then the uncompressed version of the file is linked.

This does not change much, because compression is disabled and the files
will always be uncompressed, however the right link should be generated.

The allows extension to override the compress method and implement
compression without fixing the rest of the code.

The bug is a regression introduced with: #27694 (4.6).

Return the correct filename by overriding the filename with the returned
value of compressJsFile.

Resolves: #48213
Related: #27694
Releases: 6.2, 6.1, 6.0, 4.7
Change-Id: I1f65576db8084b54f9e5a13947ced258eef893d7
Reviewed-on: https://review.typo3.org/20845
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-on: https://review.typo3.org/21409
typo3/sysext/core/Classes/Resource/ResourceCompressor.php