Added parser hook InternalParseBeforeLinks, closes Bug#8578. The hook is relevant...
authorMarkus Krötzsch <mkroetzsch@users.mediawiki.org>
Fri, 23 Mar 2007 16:47:58 +0000 (16:47 +0000)
committerMarkus Krötzsch <mkroetzsch@users.mediawiki.org>
Fri, 23 Mar 2007 16:47:58 +0000 (16:47 +0000)
be taken care of before they do their magic.

includes/Parser.php

index 5834b1d..f5fbaa2 100644 (file)
@@ -1000,6 +1000,7 @@ class Parser
                $text = Sanitizer::removeHTMLtags( $text, array( &$this, 'attributeStripCallback' ) );
 
                $text = $this->replaceVariables( $text, $args );
+               wfRunHooks( 'InternalParseBeforeLinks', array( &$this, &$text ) );
 
                // Tables need to come after variable replacement for things to work
                // properly; putting them before other transformations should keep