Included special pages should never show a form, because a included
special page is designed to show the result of something, not allow
starting a search (where than Special:WhatLinksHere is opened instead of
showing the result within the wiki page).
On no input Special:WhatLinksHere would output nothing, like a
transcluded Special:Contributions would do.
Bug: T67779
Change-Id: I289fd8fe6bbd4238581035770a472b1c7b9f2643
$this->target = Title::newFromURL( $opts->getValue( 'target' ) );
if ( !$this->target ) {
- $out->addHTML( $this->whatlinkshereForm() );
+ if ( !$this->including() ) {
+ $out->addHTML( $this->whatlinkshereForm() );
+ }
return;
}