KartikMistry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/282181

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


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/81/282181/1

diff --git a/api/ApiContentTranslationPublish.php 
b/api/ApiContentTranslationPublish.php
index 0a37680..83ff8fd 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: newchange
Gerrit-Change-Id: I380a8d5c007fe62ddf1cc420d903cad7368e0a3e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: KartikMistry <[email protected]>

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

Reply via email to