From: mainframe98 Date: Sat, 9 Mar 2019 16:00:26 +0000 (+0100) Subject: Fix the order of the parameters for htmlform-title-badnamespace X-Git-Tag: 1.34.0-rc.0~2558^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=301973d1afd0cd3cf64ba7a7ce0b5a970a5f370c;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() ) {