mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +00:00
revert r52546 and r52550 for slow loading for the class, per CodeReview.
This commit is contained in:
parent
b7179c44cf
commit
bb149b0887
|
@ -306,7 +306,7 @@ class SyntaxHighlight_GeSHi {
|
|||
if( !self::$initialised ) {
|
||||
wfLoadExtensionMessages( 'SyntaxHighlight_GeSHi' );
|
||||
if( !class_exists( 'GeSHi' ) )
|
||||
require_once( 'geshi/geshi.php' );
|
||||
require( 'geshi/geshi.php' );
|
||||
self::$initialised = true;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -61,11 +61,6 @@ if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
|
|||
$wgExtensionFunctions[] = 'efSyntaxHighlight_GeSHiSetup';
|
||||
}
|
||||
|
||||
if ( file_exists( $dir . 'geshi/geshi.php' ) ) {
|
||||
require_once( 'geshi/geshi.php' );
|
||||
$wgExtensionCredits['parserhook']['SyntaxHighlight_GeSHi']['version'] = GESHI_VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register parser hook
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue