Project

General

Profile

Actions

Bug #23509

closed

Disabling comment in generated CSS

Added by Christophe Monard about 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-09-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF