please don't fuck over every other extension by canceling their message-add hooks for them

This commit is contained in:
Brion Vibber 2007-05-21 19:36:17 +00:00
parent b99eb01fca
commit 51da58b787

View file

@ -58,12 +58,13 @@ function syntaxHighlightSetup() {
function syntaxHighlightLoadMessages() {
static $loaded = false;
if ( $loaded ) {
return;
return true;
}
global $wgMessageCache;
require_once( dirname( __FILE__ ) . '/SyntaxHighlight_GeSHi.i18n.php' );
foreach( efSyntaxHighlight_GeSHiMessages() as $lang => $messages )
$wgMessageCache->addMessages( $messages, $lang );
return true;
}
function syntaxHighlightHook( $text, $params = array(), $parser ) {