From: Markus Krötzsch Date: Fri, 23 Mar 2007 16:47:58 +0000 (+0000) Subject: Added parser hook InternalParseBeforeLinks, closes Bug#8578. The hook is relevant... X-Git-Tag: 1.31.0-rc.0~53626 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=cb557c8adcf867f0671a67e74095ffb00de5974b;p=lhc%2Fweb%2Fwiklou.git Added parser hook InternalParseBeforeLinks, closes Bug#8578. The hook is relevant for all parser extensions that want templates, nowiki, etc. to be taken care of before they do their magic. --- diff --git a/includes/Parser.php b/includes/Parser.php index 5834b1d99a..f5fbaa2a81 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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