Merge "Fix the order of the parameters for htmlform-title-badnamespace"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 11 Mar 2019 20:28:07 +0000 (20:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 11 Mar 2019 20:28:07 +0000 (20:28 +0000)
includes/htmlform/fields/HTMLTitleTextField.php

index dd9f793..1eda33c 100644 (file)
@@ -66,7 +66,7 @@ class HTMLTitleTextField extends HTMLTextField {
                if ( $this->mParams['namespace'] !== false &&
                        !$title->inNamespace( $this->mParams['namespace'] )
                ) {
-                       return $this->msg( 'htmlform-title-badnamespace', $this->mParams['namespace'], $text );
+                       return $this->msg( 'htmlform-title-badnamespace', $text, $this->mParams['namespace'] );
                }
 
                if ( $this->mParams['creatable'] && !$title->canExist() ) {