From: Jan Gerber Date: Tue, 26 Mar 2013 07:57:25 +0000 (+0000) Subject: (bug 46547) use content language for rotation comment X-Git-Tag: 1.31.0-rc.0~20218^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=dd47f9f598f470854bd8cec57910a0e41571aef3;p=lhc%2Fweb%2Fwiklou.git (bug 46547) use content language for rotation comment Bug: 46547 Change-Id: I93519557e15857176f50ea34cb59832c9575f20e --- 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() ) {