aboutsummaryrefslogtreecommitdiffstats
path: root/includes/logging/LogEntry.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2014-05-30 21:58:54 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2014-05-30 21:58:54 +0000
commitf93d34fb756b3271cc13b5581316cefa66de5013 (patch)
tree069d0b3599b56262bb9055961a17c393c24546a0 /includes/logging/LogEntry.php
parent5dc4dc099d8799cf98dcda9016f77903d5868eb4 (diff)
parent34d4901f739304cb2f1a7dece86901fe5d71115e (diff)
downloadmediawikicore-f93d34fb756b3271cc13b5581316cefa66de5013.tar.gz
mediawikicore-f93d34fb756b3271cc13b5581316cefa66de5013.zip
Merge "Allow adding Deleted log entries"
Diffstat (limited to 'includes/logging/LogEntry.php')
-rw-r--r--includes/logging/LogEntry.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php
index d893be5d3041..bebe3a9fee24 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();