From: csteipp Date: Mon, 28 Apr 2014 22:28:41 +0000 (-0700) Subject: Allow adding Deleted log entries X-Git-Tag: 1.31.0-rc.0~15526^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22lang_raccourcis%22%2C%22module=%24nom_module%22%29%20.%20%22?a=commitdiff_plain;h=34d4901f739304cb2f1a7dece86901fe5d71115e;p=lhc%2Fweb%2Fwiklou.git Allow adding Deleted log entries Set log_deleted when a LogEntry object's deleted property is set. Bug: 63650 Change-Id: Iebd6f7442cba5176d112eb613e2b7ca2e67e37b1 --- 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();