Fix the order of the parameters for htmlform-title-badnamespace
authormainframe98 <k.s.werf@hotmail.com>
Sat, 9 Mar 2019 16:00:26 +0000 (17:00 +0100)
committermainframe98 <k.s.werf@hotmail.com>
Sat, 9 Mar 2019 16:00:26 +0000 (17:00 +0100)
The name of the page is the first parameter, and the namespace is
the second parameter.

Change-Id: I738cdd920d0ce641837c5dc1da391602a15df794

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() ) {