From 301973d1afd0cd3cf64ba7a7ce0b5a970a5f370c Mon Sep 17 00:00:00 2001 From: mainframe98 Date: Sat, 9 Mar 2019 17:00:26 +0100 Subject: [PATCH] Fix the order of the parameters for htmlform-title-badnamespace The name of the page is the first parameter, and the namespace is the second parameter. Change-Id: I738cdd920d0ce641837c5dc1da391602a15df794 --- includes/htmlform/fields/HTMLTitleTextField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/fields/HTMLTitleTextField.php b/includes/htmlform/fields/HTMLTitleTextField.php index dd9f793e1f..1eda33c296 100644 --- a/includes/htmlform/fields/HTMLTitleTextField.php +++ b/includes/htmlform/fields/HTMLTitleTextField.php @@ -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() ) { -- 2.20.1