Don't show patrol links if RCP/NPP are disabled, but file patrol isn't
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 16 Feb 2016 23:28:22 +0000 (15:28 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 17 Feb 2016 09:53:36 +0000 (01:53 -0800)
commitbcd1244f532ae520316140a0ea13f98ed2e9c2f0
tree7a286a680ce4bf1352e99fb116d6d7a10693eab7
parent6e9b4f0e9ce4ccd6089c18b205065ef7fa077484
Don't show patrol links if RCP/NPP are disabled, but file patrol isn't

$wgUseFilePatrol only matters for pages in the File namespace, so limit
it to that. Otherwise wikis with RC and NP patrol disabled will have
patrol links show up, but always have the API request fail.

Bug: T125288
Change-Id: Ia91f6ae7ed54627e3e722f41637b1d11626d9806
includes/page/Article.php