X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerName.php;h=e6deed52b6172879c0295999edf24a52071433de;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hp=556461828db3c39a411303b375e5c66475187f6d;hpb=4b73a8b6fbb6da651af850a7d667e6e8d59e6fce;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerName.php b/includes/installer/WebInstallerName.php index 556461828d..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', @@ -73,7 +78,7 @@ class WebInstallerName extends WebInstallerPage { 'label' => '', // @todo Needs a label? 'attribs' => [ 'readonly' => 'readonly', 'class' => 'enabledByOther' ] ] ) . - $this->getFieldSetStart( 'config-admin-box' ) . + $this->getFieldsetStart( 'config-admin-box' ) . $this->parent->getTextBox( [ 'var' => '_AdminName', 'label' => 'config-admin-name', @@ -100,7 +105,16 @@ class WebInstallerName extends WebInstallerPage { 'label' => 'config-subscribe', 'help' => $this->parent->getHelpBox( 'config-subscribe-help' ) ] ) . - $this->getFieldSetEnd() . + $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. // For grep: The following messages are used as the item labels: @@ -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' ) ) === '' ) {