Used on wikiHow to simply never show this particular link.
Change-Id: Id6b11135cc062798964a6b3e927ad665fd757616
* The 'ImageBeforeProduceHTML' hook is now passed three new parameters, $parser,
&$query and &$widthOption, allowing extensions even finer control over the
resulting HTML code.
+* Added new 'ArticleShowPatrolFooter' hook, which allows extensions to determine
+ if the [mark as patrolled] link should be shown at the footer of patrollable
+ pages.
=== External library changes in 1.32 ===
* …
$revision: the revision the page was reverted back to
$current: the reverted revision
+'ArticleShowPatrolFooter': Called at the beginning of Article#showPatrolFooter.
+Extensions can use this to not show the [mark as patrolled] link in certain
+circumstances.
+$article: the Article object
+
'ArticleUndelete': When one or more revisions of an article are restored.
&$title: Title corresponding to the article restored
$create: Whether or not the restoration caused the page to be created (i.e. it
public function showPatrolFooter() {
global $wgUseNPPatrol, $wgUseRCPatrol, $wgUseFilePatrol;
+ // Allow hooks to decide whether to not output this at all
+ if ( !Hooks::run( 'ArticleShowPatrolFooter', [ $this ] ) ) {
+ return false;
+ }
+
$outputPage = $this->getContext()->getOutput();
$user = $this->getContext()->getUser();
$title = $this->getTitle();