[BUGFIX] compressJs returns wrong filenames 45/20845/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 16 May 2013 18:23:00 +0000 (20:23 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 14 Jun 2013 00:41:24 +0000 (02:41 +0200)
commit1c8856fad9b496564719b9cb27c815cf9b1dfafe
tree7935f42a5eac78d9d8130e9e0adc62831149f1b3
parentaeba1e646b86eff8ca0103ee3e37d20951f094cc
[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
typo3/sysext/core/Classes/Resource/ResourceCompressor.php