revert r52546 and r52550 for slow loading for the class, per CodeReview.

This commit is contained in:
Shinjiman 2009-06-29 17:06:59 +00:00
parent b7179c44cf
commit bb149b0887
2 changed files with 1 additions and 6 deletions

View file

@ -306,7 +306,7 @@ class SyntaxHighlight_GeSHi {
if( !self::$initialised ) { if( !self::$initialised ) {
wfLoadExtensionMessages( 'SyntaxHighlight_GeSHi' ); wfLoadExtensionMessages( 'SyntaxHighlight_GeSHi' );
if( !class_exists( 'GeSHi' ) ) if( !class_exists( 'GeSHi' ) )
require_once( 'geshi/geshi.php' ); require( 'geshi/geshi.php' );
self::$initialised = true; self::$initialised = true;
} }
return true; return true;

View file

@ -61,11 +61,6 @@ if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
$wgExtensionFunctions[] = 'efSyntaxHighlight_GeSHiSetup'; $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 * Register parser hook
*/ */