mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +00:00
please don't fuck over every other extension by canceling their message-add hooks for them
This commit is contained in:
parent
b99eb01fca
commit
51da58b787
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue