https://bugzilla.wikimedia.org/show_bug.cgi?id=71916
Bug ID: 71916
Summary: Add a hook for custom diff engines (for
Extension:WikEdDiff)
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: History/Diffs
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
I have written a new extension for custom inline-diff with block move
support(WikEdDiff, https://www.mediawiki.org/wiki/Extension:WikEdDiff). This
extension needs a new hook.
E.g. "CustomDifferenceEngine" in /includes/diff/DifferenceEngine.php in
function generateTextDiffBody after "$ntext = str_replace( "\r\n", "\n", $ntext
);":
# Custom difference engine hook
wfRunHooks( 'CustomDifferenceEngine', array( &$otext, &$ntext, &$diffText )
);
if ( $diffText !== false ) {
wfProfileOut( __METHOD__ );
return $diffText;
}
I am new to git/Gerrit and wanted to discuss this here first.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l