J has uploaded a new change for review.

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


Change subject: (bug 46547) use content language for rotation comment
......................................................................

(bug 46547) use content language for rotation comment

Change-Id: I93519557e15857176f50ea34cb59832c9575f20e
---
M includes/api/ApiImageRotate.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/56/55856/1

diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php
index e261f38..d966c1b 100644
--- a/includes/api/ApiImageRotate.php
+++ b/includes/api/ApiImageRotate.php
@@ -119,7 +119,7 @@
                                "rotation" => $rotation
                        ) );
                        if ( !$err ) {
-                               $comment = wfMessage( 'rotate-comment' 
)->numParams( $rotation )->text();
+                               $comment = wfMessage( 'rotate-comment' 
)->numParams( $rotation )->inContentLanguage()->text();
                                $status = $file->upload( $dstPath,
                                        $comment, $comment, 0, false, false, 
$this->getUser() );
                                if ( $status->isGood() ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I93519557e15857176f50ea34cb59832c9575f20e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: J <jger...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to