X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogPage.php;h=28c1a8736008a79807042a6135ee5b26e745e015;hb=52b74d44d522c2a1b67f9ccc2b8f7e44b6b52d7c;hp=77d9aa21baa687d320285344eaa2847d0b6c585c;hpb=0bbe51d765939354e487f5c6c9fcf38fc7cba6e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 77d9aa21ba..28c1a87360 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -97,14 +97,13 @@ class LogPage { 'log_type' => $this->type, 'log_action' => $this->action, 'log_timestamp' => $dbw->timestamp( $now ), - 'log_user' => $this->doer->getId(), - 'log_user_text' => $this->doer->getName(), 'log_namespace' => $this->target->getNamespace(), 'log_title' => $this->target->getDBkey(), 'log_page' => $this->target->getArticleID(), 'log_params' => $this->params ]; - $data += CommentStore::newKey( 'log_comment' )->insert( $dbw, $this->comment ); + $data += CommentStore::getStore()->insert( $dbw, 'log_comment', $this->comment ); + $data += ActorMigration::newMigration()->getInsertValues( $dbw, 'log_user', $this->doer ); $dbw->insert( 'logging', $data, __METHOD__ ); $newId = $dbw->insertId();