Add hook EnhancedChangesList::getLogText
authorMatthias Mullie <git@mullie.eu>
Thu, 26 Feb 2015 13:10:22 +0000 (14:10 +0100)
committerMattflaschen <mflaschen@wikimedia.org>
Tue, 3 Mar 2015 01:50:32 +0000 (01:50 +0000)
commitfd64488787ab096acff09034042643e59eec6cb0
tree48d6d5858c74559c86fda59f9d49ea44dcc238f6
parent39db7e461b06c979d18498cc8ea16891be9bd542
Add hook EnhancedChangesList::getLogText

Enhanced RC generates these "(3 changes | history)" links for
every block of grouped recentchanges. That changes-link links
to a diff page.

For Flow, that is all wrong: we have different ids (not integers),
on a different page (&curid=&oldid=&diff= means nothing). Even
the concept of a "diff" page seems wrong here for us - a new post
is not part of some document that can be diffed.
In short: we'll want to generate a different link, and we'll need
a hook to let us change them.

Meanwhile also split the code that generates those links into a
separate method.

Bug: T72513
Change-Id: Ib32fb9552b80f9581d89b3b47da6e5d32e3d84a3
RELEASE-NOTES-1.25
docs/hooks.txt
includes/changes/EnhancedChangesList.php