X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerName.php;h=e6deed52b6172879c0295999edf24a52071433de;hb=b74e81ab6b3bdfaf67eb5d13f3f2e662d5ceb11a;hp=dcd30cf2bc10693fd4af5bb71a01da2b606cd903;hpb=8eac2feedb7ee093d2c48504e1eb2b8a9dbc8452;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerName.php b/includes/installer/WebInstallerName.php index dcd30cf2bc..e6deed52b6 100644 --- a/includes/installer/WebInstallerName.php +++ b/includes/installer/WebInstallerName.php @@ -50,6 +50,11 @@ class WebInstallerName extends WebInstallerPage { 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', @@ -100,6 +105,15 @@ class WebInstallerName extends WebInstallerPage { '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. @@ -129,7 +143,7 @@ class WebInstallerName extends WebInstallerPage { $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' ) ) === '' ) {