(bug 46547) use content language for rotation comment
authorJan Gerber <jgerber@wikimedia.org>
Tue, 26 Mar 2013 07:57:25 +0000 (07:57 +0000)
committerJan Gerber <jgerber@wikimedia.org>
Tue, 26 Mar 2013 19:05:06 +0000 (19:05 +0000)
Bug: 46547
Change-Id: I93519557e15857176f50ea34cb59832c9575f20e

includes/api/ApiImageRotate.php

index e261f38..ebdbedd 100644 (file)
@@ -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() ) {