diff --git a/inc/template.php b/inc/template.php index a7f883866b65fdb0ba8d3ad32dcfb11d6df69bf3..daa39ff4c1a8440bc6d1e8d3a7e4d082add948b0 100644 --- a/inc/template.php +++ b/inc/template.php @@ -395,16 +395,10 @@ function tpl_metaheaders($alt = true) { } } - // load stylesheets - foreach( scandir( template('') ) as $ini_file ) { - // allow all .ini files in a templates 'ini' dir to be a flavour for stylesheet creation - list( $flavour, $ext ) = explode( '.', $ini_file, 2 ); - if ( $ext != 'ini' ) continue; - $head['link'][] = array( - 'rel' => 'stylesheet', 'type'=> 'text/css', - 'href'=> DOKU_BASE.'lib/exe/css.php?t='.rawurlencode($conf['template']).'&f='.rawurlencode($flavour).'&tseed='.$tseed - ); - } + $head['link'][] = array( + 'rel' => 'stylesheet', 'type'=> 'text/css', + 'href'=> DOKU_BASE.'lib/exe/css.php?t='.rawurlencode($conf['template']).'&tseed='.$tseed + ); // make $INFO and other vars available to JavaScripts $json = new JSON();