X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FPageArchive.php;h=40c63d22e49cf838f87de1ec4317a5d85194711c;hb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;hp=cdaf06268bcde8d27177571a9c08e3be120ab729;hpb=de881f4241945f7a7f1aba2c6e072d9ddaf82da3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/PageArchive.php b/includes/page/PageArchive.php index cdaf06268b..40c63d22e4 100644 --- a/includes/page/PageArchive.php +++ b/includes/page/PageArchive.php @@ -406,8 +406,8 @@ class PageArchive { * @param User|null $user User performing the action, or null to use $wgUser * @param string|string[]|null $tags Change tags to add to log entry * ($user should be able to add the specified tags before this is called) - * @return array|bool array(number of file revisions restored, number of image revisions - * restored, log message) on success, false on failure. + * @return array|bool [ number of file revisions restored, number of image revisions + * restored, log message ] on success, false on failure. */ public function undelete( $timestamps, $comment = '', $fileVersions = [], $unsuppress = false, User $user = null, $tags = null @@ -461,7 +461,7 @@ class PageArchive { $logEntry->setPerformer( $user ); $logEntry->setTarget( $this->title ); $logEntry->setComment( $comment ); - $logEntry->setTags( $tags ); + $logEntry->addTags( $tags ); $logEntry->setParameters( [ ':assoc:count' => [ 'revisions' => $textRestored,