show the version information of GeSHi currently using, only show the version when the required geshi.php was found.

This commit is contained in:
Shinjiman 2009-06-29 15:07:40 +00:00
parent b424069389
commit 261fb2e5d4

View file

@ -61,6 +61,11 @@ if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
$wgExtensionFunctions[] = 'efSyntaxHighlight_GeSHiSetup';
}
if ( file_exists( $dir . 'geshi/geshi.php' ) ) {
require( 'geshi/geshi.php' );
$wgExtensionCredits['parserhook']['SyntaxHighlight_GeSHi']['version'] = GESHI_VERSION;
}
/**
* Register parser hook
*/