bug 10594 -- @import needs to be at the start of the <style> due to anal spec

This commit is contained in:
Brion Vibber 2007-07-17 17:45:02 +00:00
parent ab7a119a8b
commit f4a9164e78

View file

@ -130,13 +130,16 @@ class SyntaxHighlight_GeSHi {
$css[] = ".source-$lang {line-height: normal;}";
$css[] = ".source-$lang li {line-height: normal;}";
$css[] = $geshi->get_stylesheet( false );
$css[] = '/*]]>*/';
$css[] = '</style>';
if( $wgUseSiteCss ) {
$title = Title::makeTitle( NS_MEDIAWIKI, 'Geshi.css' );
$q = "usemsgcache=yes&action=raw&ctype=text/css&smaxage={$wgSquidMaxage}";
$css[] = '<style type="text/css">/*<![CDATA[*/';
$css[] = '@import "' . $title->getLocalUrl( $q ) . '";';
$css[] = '/*]]>*/';
$css[] = '</style>';
}
$css[] = '/*]]>*/';
$css[] = '</style>';
return implode( "\n", $css );
}