[FEATURE] Add option to remove default CSS from extensions
authorSusanne Moog <typo3@susannemoog.de>
Fri, 29 Apr 2011 18:34:22 +0000 (20:34 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Wed, 8 Jun 2011 19:26:56 +0000 (21:26 +0200)
Currently there is no way to disable the output of the
default CSS from extensions (_CSS_DEFAULT_STYLE). You
can only disable it per extension. This change adds
a config option - removeDefaultCss - which allows to
disable it globally.

Change-Id: I1bf2566e14b2f50e16ee0ed4b64a29c3acc1f563
Resolves: #17634
Reviewed-on: http://review.typo3.org/1810
Reviewed-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Markus Klein
Reviewed-by: Dmitry Dulepov
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/cms/tslib/class.tslib_pagegen.php

index 5a863cd..0a0cfef 100644 (file)
@@ -518,7 +518,7 @@ See <a href="http://wiki.typo3.org/index.php/TYPO3_3.8.1" target="_blank">wiki.t
                }
 
                        // Including CSS files
-               if (is_array($GLOBALS['TSFE']->tmpl->setup['plugin.'])) {
+               if (is_array($GLOBALS['TSFE']->tmpl->setup['plugin.']) && empty($GLOBALS['TSFE']->config['config']['removeDefaultCss'])) {
                        $temp_styleLines = array ();
                        foreach ($GLOBALS['TSFE']->tmpl->setup['plugin.'] as $key => $iCSScode) {
                                if (is_array($iCSScode) && $iCSScode['_CSS_DEFAULT_STYLE']) {
@@ -1212,4 +1212,4 @@ class FE_loadDBGroup extends t3lib_loadDBGroup {
        var $fromTC = 0;        // Means that everything is returned instead of only uid and label-field
 }
 
-?>
\ No newline at end of file
+?>