* @ingroup Deployment
*/
+use MediaWiki\MediaWikiServices;
+
class WebInstallerName extends WebInstallerPage {
/**
*/
public function execute() {
$r = $this->parent->request;
- if ( $r->wasPosted() ) {
- if ( $this->submit() ) {
- return 'continue';
- }
+ if ( $r->wasPosted() && $this->submit() ) {
+ return 'continue';
}
$this->startForm();
'value' => true,
] ) .
$this->getFieldsetEnd() .
- $this->parent->getInfoBox( wfMessage( 'config-almost-done' )->text() ) .
+ $this->parent->getInfoBox( wfMessage( 'config-almost-done' )->plain() ) .
// getRadioSet() builds a set of labeled radio buttons.
// For grep: The following messages are used as the item labels:
// config-optional-continue, config-optional-skip
}
// Make sure it won't conflict with any existing namespaces
- global $wgContLang;
- $nsIndex = $wgContLang->getNsIndex( $name );
+ $nsIndex = MediaWikiServices::getInstance()->getContentLanguage()->getNsIndex( $name );
if ( $nsIndex !== false && $nsIndex !== NS_PROJECT ) {
$this->parent->showError( 'config-ns-conflict', $name );
$retVal = false;