Use descriptive key for array of in a Special:EditWatchlist line
authorMatthias Mullie <git@mullie.eu>
Wed, 27 Aug 2014 10:44:49 +0000 (12:44 +0200)
committerMatthias Mullie <git@mullie.eu>
Wed, 27 Aug 2014 10:46:44 +0000 (12:46 +0200)
commita082234a87193474cbc1642e818ad478315af246
tree3bdfcfcd99f975c6a23f45b306171e1d4786d11f
parent81693d147b8ea08d9f7a48ba8ff48c1e0f4f9848
Use descriptive key for array of  in a Special:EditWatchlist line

WatchlistEditorBuildRemoveLine allows subscribers to modify $tools array.
However, it's hard to know exactly which link is which: $tools is just an array
of HTML links.
By adding a descriptive key, it'd be easier to unset or modify a specific link.

AFAICT, there currently are no subscribers to this hook in WMF extensions (Flow
will be coming up with one soon), so this change should be safe.

Change-Id: Id3f69db1aab7d3e3761318d7f8588ae63a0bc6a6
includes/specials/SpecialEditWatchlist.php