Make edit link conditional on Special:BrokenRedirects/DoubleRedirects
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 6 Nov 2015 09:36:59 +0000 (10:36 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 6 Nov 2015 11:28:18 +0000 (11:28 +0000)
commitf311221ec27763caaadfe5e8ea1dbc7e8bc9c4f0
treef3734c0725e4bfd5c33b0ff714562dd1a39bef81
parent36171312ef0e1b9acdea876f300dca8f3ad9982e
Make edit link conditional on Special:BrokenRedirects/DoubleRedirects

When an user has no permission, do not show an edit link.
Also do not show an edit link when content model does not allow direct
editing, like WikiData items.

For performance reason the special pages now run a LinkBatch to collect
the content model information.

Bug: T117900
Change-Id: Ieb56a6f314059356b95bc045f3d255930d54f213
includes/specials/SpecialBrokenRedirects.php
includes/specials/SpecialDoubleRedirects.php