No subject
Tue Jan 26 08:56:49 CET 2010
"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."
Solution:
Change default media to "all" instead of "screen". Patch was provided by
internezzo ag, I just took it out of the bugtracker.
Best regards,
Susanne
--------------020103090109080307010005
Content-Type: text/x-diff;
name="13716.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="13716.diff"
Index: typo3/sysext/cms/tslib/class.tslib_pagegen.php
===================================================================
--- typo3/sysext/cms/tslib/class.tslib_pagegen.php (Revision 7074)
+++ typo3/sysext/cms/tslib/class.tslib_pagegen.php (Arbeitskopie)
@@ -545,7 +545,7 @@
$pageRenderer->addCssFile(
htmlspecialchars($ss),
$GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['alternate'] ? 'alternate stylesheet' : 'stylesheet',
- $GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['media'] ? $GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['media'] : 'screen',
+ $GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['media'] ? $GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['media'] : 'all',
$GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['title'] ? $GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['title'] : '',
$GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['compress'] ? TRUE : FALSE,
$GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['forceOnTop'] ? TRUE : FALSE,
--------------020103090109080307010005--
More information about the TYPO3-team-core
mailing list