jenkins-bot has submitted this change and it was merged.

Change subject: Use array in invalid title error message
......................................................................


Use array in invalid title error message

So that titles with newline feed can be display in error message
properly.

Change-Id: I380a8d5c007fe62ddf1cc420d903cad7368e0a3e
---
M api/ApiContentTranslationPublish.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/api/ApiContentTranslationPublish.php 
b/api/ApiContentTranslationPublish.php
index 0a37680..69881dd 100755
--- a/api/ApiContentTranslationPublish.php
+++ b/api/ApiContentTranslationPublish.php
@@ -128,7 +128,7 @@
 
                $targetTitle = Title::newFromText( $params['title'] );
                if ( !$targetTitle ) {
-                       $this->dieUsageMsg( 'invalidtitle', $params['title'] );
+                       $this->dieUsageMsg( array( 'invalidtitle', 
$params['title'] ) );
                }
 
                $this->translation = ContentTranslation\Translation::find(

-- 
To view, visit https://gerrit.wikimedia.org/r/282181
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I380a8d5c007fe62ddf1cc420d903cad7368e0a3e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: KartikMistry <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to