Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -161,7 +161,7 @@ class AnswerMarkedBest extends AchievementActionAbstract
|
||||
*/
|
||||
public function awardOther( mixed $extra = NULL, ?array $filters = NULL ): array
|
||||
{
|
||||
return [ $extra->item()->author() ];
|
||||
return [ $extra['post']->item()->author() ];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -303,6 +303,6 @@ class AnswerMarkedBest extends AchievementActionAbstract
|
||||
public static function rebuildRow( array $row, array $data ) : void
|
||||
{
|
||||
$post = Post::load( $row['comment_id'] );
|
||||
$post->author()->achievementAction( 'forums', 'AnswerMarkedBest', $post, DateTime::ts( $row[ $data['date'] ] ) );
|
||||
$post->author()->achievementAction( 'forums', 'AnswerMarkedBest', [ 'post' => $post, 'type' => $data['type'] ], DateTime::ts( $row[ $data['date'] ] ) );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user