Issue Bug Closed

#44231config.compressJs wrong file path

Torsten Fink 12/27/12, 11:22 updated 08/08/14, 11:42

Description

As I wanted to enable config.compressJs i figured out that it doesn’t work, and I found the problem here:

typo3/sysext/core/Classes/Page/PageRenderer.php:2196-2199
and again here
typo3/sysext/core/Classes/Page/PageRenderer.php:2234-2237

$file is used for the path to the file but must be $properties[‘file’]
In 4.7 all is correct, in 6.0 not.

var_dump of $this->jsFiles shows the problem:

array (size=1)
  'typo3temp/compressor/merged-ec538a68e1733e504b710e5e7a092ff6.js' => 
    array (size=6)
      'file' => string 'typo3temp/compressor/merged-ec538a68e1733e504b710e5e7a092ff6-0bf83a0dbc17cd6de494cd8eaf72f7e7.js.gzip' (length=101)
      'type' => string 'text/javascript' (length=15)
      'section' => int 1
      'compress' => boolean true
      'forceOnTop' => boolean false
      'allWrap' => string '' (length=0)

Reviews 1