mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 10:39:53 +00:00
bug 10594 -- @import needs to be at the start of the <style> due to anal spec
This commit is contained in:
parent
ab7a119a8b
commit
f4a9164e78
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue