#23509Disabling comment in generated CSS
Description
Can we add a condition in inline style generation to remove comments like:
/* default styles for extension ‘’ */
In this correction I use the disablePrefixComment.
Thanks guy (maybe we can use a new var)
in typo3/sysext/cms/tslib/class.tslib_pagegen.php
Line 502 :
the old one :
$temp_styleLines[] = ‘/* default styles for extension “’ . substr($key, 0, – 1) . ‘” /’ . LF . $iCSScode[‘_CSS_DEFAULT_STYLE’];
and the new :
$temp_styleLines[] = (!$GLOBALS[‘TSFE’]->config[‘config’][‘disablePrefixComment’]?’/ default styles for extension “’ . substr($key, 0, – 1) . ‘” */’ . LF:’‘) . $iCSScode[‘_CSS_DEFAULT_STYLE’];
(issue imported from #M15650)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.