From dd47f9f598f470854bd8cec57910a0e41571aef3 Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Tue, 26 Mar 2013 07:57:25 +0000 Subject: [PATCH] (bug 46547) use content language for rotation comment Bug: 46547 Change-Id: I93519557e15857176f50ea34cb59832c9575f20e --- includes/api/ApiImageRotate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index e261f38a07..ebdbedd11b 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -119,7 +119,9 @@ class ApiImageRotate extends ApiBase { "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() ) { -- 2.20.1