wfMessage( 'config-ns-other-default' )->inContentLanguage()->text()
);
+ $pingbackInfo = ( new Pingback() )->getSystemInfo();
+ // Database isn't available in config yet, so take it
+ // from the installer
+ $pingbackInfo['database'] = $this->getVar( 'wgDBtype' );
+
$this->addHTML(
$this->parent->getTextBox( [
'var' => 'wgSitename',
'label' => 'config-subscribe',
'help' => $this->parent->getHelpBox( 'config-subscribe-help' )
] ) .
+ $this->parent->getCheckBox( [
+ 'var' => 'wgPingback',
+ 'label' => 'config-pingback',
+ 'help' => $this->parent->getHelpBox(
+ 'config-pingback-help',
+ FormatJson::encode( $pingbackInfo, true )
+ ),
+ 'value' => true,
+ ] ) .
$this->getFieldsetEnd() .
$this->parent->getInfoBox( wfMessage( 'config-almost-done' )->text() ) .
// getRadioSet() builds a set of labeled radio buttons.
$retVal = true;
$this->parent->setVarsFromRequest( [ 'wgSitename', '_NamespaceType',
'_AdminName', '_AdminPassword', '_AdminPasswordConfirm', '_AdminEmail',
- '_Subscribe', '_SkipOptional', 'wgMetaNamespace' ] );
+ '_Subscribe', '_SkipOptional', 'wgMetaNamespace', 'wgPingback' ] );
// Validate site name
if ( strval( $this->getVar( 'wgSitename' ) ) === '' ) {