wiki.techinc.nl/includes/diff
Jack Phoenix 03dfe2c3be Adding a bunch of hooks from wikiHow into DifferenceEngine, 2nd try
Now with less fatals and more functionality! At least I sure hope so.

Unlike the first time around (https://gerrit.wikimedia.org/r/206642), the
DifferenceEngineRenderRevisionAddParserOutput and
DifferenceEngineShowEmptyOldContent hooks now only affect things if a
hooked function returns false. Since by default nothing is hooked into
these brand new hooks, the behavior should stay exactly the same as before
this patch and things like bug T139435 shouldn't happen anymore.

These hooks allow things such as:
* adding CSS(/JS) into the OutputPage when viewing diffs
* adding extra HTML content (such as avatars) into diff views
* hiding the bottom "mark as patrolled" link
* altering the parser output that is used by DifferenceEngine
* and more

Example extension using these hooks is wikiHow's
/extensions/wikihow/hooks/, specifically the file DiffHooks.php (but the
hooks are setup in WikihowHooks.php).

Live example of the DiffHooks stuff in action can be found at wikiHow.com,
for example:
http://www.wikihow.com/index.php?title=Set-Your-Homepage&diff=17112892&oldid=15888129
(user avatars, additional CSS, changes to the old/new revision header
texts/links)

Bug: T139526
Change-Id: I10293be4581140c3edf0e4b538b04b31cb6f5730
2016-07-08 19:46:20 +03:00
..
ArrayDiffFormatter.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ComplexityException.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DairikiDiff.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DiffEngine.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DifferenceEngine.php Adding a bunch of hooks from wikiHow into DifferenceEngine, 2nd try 2016-07-08 19:46:20 +03:00
DiffFormatter.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TableDiffFormatter.php TableDiffFormatter: Don't repeatedly call array_shift() 2016-03-09 04:09:07 -05:00
UnifiedDiffFormatter.php DiffFormatter: Don't mess with PHP output buffering 2016-01-27 19:31:17 -05:00
WordAccumulator.php Refactor diffs 2016-05-17 18:17:05 -07:00
WordLevelDiff.php Rethink diff limits 2016-06-01 16:30:58 -07:00