Fix CommentStore->createComment() call in LocalFile.php
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 9 Feb 2018 17:43:30 +0000 (12:43 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 9 Feb 2018 17:43:30 +0000 (12:43 -0500)
This was incorrectly changed in I3abb62a5, createComment() is not one of
the methods that was adjusted in that patch.

Change-Id: I9c26e0ad69ffc6fa5349a6975a4134efb3cf0eff

includes/filerepo/file/LocalFile.php

index bf1181f..92b5f17 100644 (file)
@@ -2509,7 +2509,7 @@ class LocalFileDeleteBatch {
                        );
                        $rowsInsert = [];
                        if ( $res->numRows() ) {
-                               $reason = $commentStore->createComment( $dbw, 'fa_deleted_reason', $this->reason );
+                               $reason = $commentStore->createComment( $dbw, $this->reason );
                                foreach ( $res as $row ) {
                                        $comment = $commentStore->getComment( 'oi_description', $row );
                                        $rowsInsert[] = [