When the special page is included with
{{Special:NewImages}}
the module 'mediawiki.special.newFiles' throws an error.
This change loads the module 'mediawiki.special.newFiles' together with the
form.
Bug: T167601
Change-Id: I5a0589f62388292851664daf1ab5e63008556a64
$this->outputHeader();
$out = $this->getOutput();
- $out->addModules( 'mediawiki.special.newFiles' );
$this->addHelpLink( 'Help:New images' );
$opts = new FormOptions();
->setMethod( 'get' )
->prepareForm()
->displayForm( false );
+
+ $this->getOutput()->addModules( 'mediawiki.special.newFiles' );
}
protected function getGroupName() {