X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Flogging%2FLogEntry.php;h=bf35d78d25a80c4067ffc6764ebca655340709af;hb=28cb34cfae46c29033f10a3b192ec3e5bde3f6b7;hp=75617d9a0d51228a3ec4238ff188b42ad226f7ec;hpb=6ec1a3150246524b6e0bf4c11729fd905f50cc57;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index 75617d9a0d..bf35d78d25 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -383,7 +383,7 @@ class RCDatabaseLogEntry extends DatabaseLogEntry { public function getComment() { return CommentStore::newKey( 'rc_comment' ) - // Legacy because the row probably used RecentChange::selectFields() + // Legacy because the row may have used RecentChange::selectFields() ->getCommentLegacy( wfGetDB( DB_REPLICA ), $this->row )->text; } @@ -594,7 +594,6 @@ class ManualLogEntry extends LogEntryBase { */ public function insert( IDatabase $dbw = null ) { $dbw = $dbw ?: wfGetDB( DB_MASTER ); - $id = $dbw->nextSequenceValue( 'logging_log_id_seq' ); if ( $this->timestamp === null ) { $this->timestamp = wfTimestampNow(); @@ -614,7 +613,6 @@ class ManualLogEntry extends LogEntryBase { } $data = [ - 'log_id' => $id, 'log_type' => $this->getType(), 'log_action' => $this->getSubtype(), 'log_timestamp' => $dbw->timestamp( $this->getTimestamp() ),