X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogPage.php;h=28c1a8736008a79807042a6135ee5b26e745e015;hb=45a6a7ad6771ed4c94f7a9c568ffeeca4935ca87;hp=e4212092789296848111de2beaab3b299b6dc34b;hpb=d19826aa35b206847a568a4b2c1c9ffaa615fca5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index e421209278..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(); @@ -319,7 +318,7 @@ class LogPage { * * @param string $action One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move', 'move_redir' - * @param Title $target Title object + * @param Title $target * @param string $comment Description associated * @param array $params Parameters passed later to wfMessage function * @param null|int|User $doer The user doing the action. null for $wgUser