Bug #22221
closedincludeCSS changed behavior
0%
Description
In Revision 5903 (http://forge.typo3.org/repositories/diff/typo3v4-core/trunk/typo3/sysext/cms/tslib/class.tslib_pagegen.php?rev=5903) the includeCSS on the page object was rewritten and it changed his behavior.
Before the change a CSS-File without a media definition had no media attribute in in the link-tag.
Now it become the media="screen" which is ignored in example in the printversion.
This behavior is related to the bug 13252 which was fixed in the revision 6960 (http://forge.typo3.org/repositories/diff/typo3v4-core?rev=6960)
There are two possible solution:
Patch 1: Replace the hardcoded "screen" with "all"
Or Patch 2: Give the "$GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['media']" directly to the addCssFile function. If its not set it will the defaultvalue defined by the function which is "all"
(issue imported from #M13716)
Files