Do not output invalid links for deleted names on Special:Contributions
authorMatěj Suchánek <matejsuchanek97@gmail.com>
Sat, 25 Feb 2017 15:01:34 +0000 (15:01 +0000)
committerMatěj Suchánek <matejsuchanek97@gmail.com>
Sat, 25 Feb 2017 15:30:47 +0000 (15:30 +0000)
commitf136e4c2e60862ac465059e8eab39b54323a1555
tree987ee27594c5ae94e8b40f1d566cbda30c53668f
parentd17eeb742a26c2567de96872c0419b39b97cde56
Do not output invalid links for deleted names on Special:Contributions

Steps to reproduce:
- have advanced user rights and go to Special:Contributions
- choose "Show contributions of new accounts only" and "Deleted only"
- examine rows with deleted user names, marked with
  "[username or IP address removed - edit hidden from contributions]"

All these rows have a red "(talk)" link which links to "User talk:"
(that's all). More detailed examination reveals an empty <a> element
which is supposed to link to the user page.

As these rows have the mentioned marker, we can just skip generating
user link if the user name is hidden.

Change-Id: I4fc7fb7ad2836834e9436ca2acb6b12484c15172
includes/specials/pagers/ContribsPager.php