class SpecialDiff extends RedirectSpecialPage {
public function __construct() {
parent::__construct( 'Diff' );
- $this->mAllowedRedirectParams = array();
+ $this->mAllowedRedirectParams = [];
}
/**
$this->mAddedRedirectParams['diff'] = $parts[1];
} else {
// Wrong number of parameters, bail out
- $this->getOutput()->addHelpLink( 'Help:Diff' );
+ $this->addHelpLink( 'Help:Diff' );
throw new ErrorPageError( 'nopagetitle', 'nopagetext' );
}