mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +00:00
show the version information of GeSHi currently using, only show the version when the required geshi.php was found.
This commit is contained in:
parent
b424069389
commit
261fb2e5d4
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue