/** * Initialise messages and ensure the GeSHi class is loaded * @return bool */ private static function initialise() { if( !self::$initialised ) { if( !class_exists( 'GeSHi' ) ) { require( 'geshi/geshi.php' ); } self::$initialised = true; } return true; }
/** * Initialise messages and ensure the GeSHi class is loaded */ private static function initialise() { if (!self::$initialised) { wfLoadExtensionMessages('SyntaxHighlight_GeSHi'); if (!class_exists('GeSHi')) { require 'geshi/geshi.php'; } self::$initialised = true; } return true; }
/** * Initialise messages and ensure the GeSHi class is loaded * @return bool */ private static function initialise() { if (!self::$initialised) { if (!class_exists('GeSHi')) { require dirname(__FILE__) . '/geshi/geshi.php'; } self::$initialised = true; } return true; }