* bug (18820) Cannot parse source code containing <source>

-> Added alternative tag <syntaxhighlight>
This commit is contained in:
Niklas Laxström 2009-05-17 15:49:17 +00:00
parent 72521f6b30
commit ba99b4641f

View file

@ -67,5 +67,6 @@ if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
function efSyntaxHighlight_GeSHiSetup() {
global $wgParser;
$wgParser->setHook( 'source', array( 'SyntaxHighlight_GeSHi', 'parserHook' ) );
$wgParser->setHook( 'syntaxhighlight', array( 'SyntaxHighlight_GeSHi', 'parserHook' ) );
return true;
}