Add user and previous rev to HistoryRevisionTools, and user to DiffRevisionTools
authorcenarium <cenarium.sysop@gmail.com>
Sat, 21 Nov 2015 12:24:17 +0000 (13:24 +0100)
committerLegoktm <legoktm.wikipedia@gmail.com>
Mon, 14 Dec 2015 00:35:59 +0000 (00:35 +0000)
commit68692ebb69042d0464a92db08340d49f601fd1e4
tree075158d6684bfc87171aa2d8b87adb710d420727
parentd762bf4b06634a5f61cab07b893ee879701cbbbd
Add user and previous rev to HistoryRevisionTools, and user to DiffRevisionTools

The next revision in the page history isn't necessarily the previous
revision (due to selective undeletions, history merges, etc). This
passes the next revision to HistoryRevisionTools so extensions can check
if needed. Also, it passes the user to this hook and DiffRevisionTools
to avoid use of wgUser or having to retrieve context.

Change-Id: Ibc68f19040eebe3614e07f753f26bbfd376ae28d
docs/hooks.txt
includes/actions/HistoryAction.php
includes/diff/DifferenceEngine.php