From 34d4901f739304cb2f1a7dece86901fe5d71115e Mon Sep 17 00:00:00 2001 From: csteipp Date: Mon, 28 Apr 2014 15:28:41 -0700 Subject: [PATCH] Allow adding Deleted log entries Set log_deleted when a LogEntry object's deleted property is set. Bug: 63650 Change-Id: Iebd6f7442cba5176d112eb613e2b7ca2e67e37b1 --- includes/logging/LogEntry.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index c7f9e40c5d..dc632412f8 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -504,6 +504,10 @@ class ManualLogEntry extends LogEntryBase { 'log_comment' => $comment, 'log_params' => serialize( (array)$this->getParameters() ), ); + if ( isset( $this->deleted ) ) { + $data['log_deleted'] = $this->deleted; + } + $dbw->insert( 'logging', $data, __METHOD__ ); $this->id = !is_null( $id ) ? $id : $dbw->insertId(); -- 2.20.1