Project

General

Profile

Actions

Bug #44231

closed

config.compressJs wrong file path

Added by Torsten Fink almost 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2012-12-27
Due date:
% Done:

0%

Estimated time:
1.00 h
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF