Page MenuHomePhabricator

bug9697-semantic-hook-21591.diff

Authored By
bzimport
Nov 21 2014, 9:39 PM
Size
1 KB
Referenced Files
None
Subscribers
None

bug9697-semantic-hook-21591.diff

Index: docs/hooks.txt
===================================================================
--- docs/hooks.txt (revision 21591)
+++ docs/hooks.txt (working copy)
@@ -396,6 +396,12 @@
$url: string value as output (out parameter, can modify)
$query: query options passed to Title::getFullURL()
+'InternalParseBeforeLinks': during Parser's internalParse method before links but
+after noinclude/includeonly/onlyinclude and other processing.
+&$this: Parser object
+&$text: string containing partially parsed text
+&$this->mStripState: Parser's internal StripState object
+
'LogPageValidTypes': action being logged. DEPRECATED: Use $wgLogTypes
&$type: array of strings
Index: includes/Parser.php
===================================================================
--- includes/Parser.php (revision 21591)
+++ includes/Parser.php (working copy)
@@ -1003,7 +1003,7 @@
$text = Sanitizer::removeHTMLtags( $text, array( &$this, 'attributeStripCallback' ) );
$text = $this->replaceVariables( $text, $args );
- wfRunHooks( 'InternalParseBeforeLinks', array( &$this, &$text ) );
+ wfRunHooks( 'InternalParseBeforeLinks', array( &$this, &$text, &$this->mStripState ) );
// Tables need to come after variable replacement for things to work
// properly; putting them before other transformations should keep
Index: RELEASE-NOTES
===================================================================
--- RELEASE-NOTES (revision 21591)
+++ RELEASE-NOTES (working copy)
@@ -124,6 +124,7 @@
500 characters
* Predefined block reasons added to Special:Blockip
* (bug 9196) Installer now check that zend.ze1_compatibility_mode is off
+* Introduce 'InternalParseBeforeLinks' hook; see docs/hooks.txt for more information
== Bugfixes since 1.9 ==

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3405
Default Alt Text
bug9697-semantic-hook-21591.diff (1 KB)

Event Timeline