From d4fb0ae7e9da10f609fbb34aca137aece98744d4 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Fri, 9 Feb 2018 12:43:30 -0500 Subject: [PATCH] Fix CommentStore->createComment() call in LocalFile.php 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index bf1181f74c..92b5f17c30 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -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[] = [ -- 2.20.1