summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/messagegroups/RecentAdditionsMessageGroup.php')
-rw-r--r--MLEB/Translate/messagegroups/RecentAdditionsMessageGroup.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/MLEB/Translate/messagegroups/RecentAdditionsMessageGroup.php b/MLEB/Translate/messagegroups/RecentAdditionsMessageGroup.php
index 688d75a0..70baedbd 100644
--- a/MLEB/Translate/messagegroups/RecentAdditionsMessageGroup.php
+++ b/MLEB/Translate/messagegroups/RecentAdditionsMessageGroup.php
@@ -8,15 +8,13 @@
* @license GPL-2.0-or-later
*/
-use MediaWiki\Extensions\Translate\SystemUsers\FuzzyBot;
+use MediaWiki\Extension\Translate\SystemUsers\FuzzyBot;
/**
* @since 2012-11-01
* @ingroup MessageGroup
*/
class RecentAdditionsMessageGroup extends RecentMessageGroup {
- protected $groupInfoCache = [];
-
public function getId() {
return '!additions';
}
@@ -43,15 +41,9 @@ class RecentAdditionsMessageGroup extends RecentMessageGroup {
'rc_namespace' => $wgTranslateMessageNamespaces,
'rc_type != ' . RC_LOG,
'rc_id > ' . $this->getRCCutoff(),
+ 'rc_actor' => FuzzyBot::getUser()->getActorId()
];
- if ( class_exists( ActorMigration::class ) ) {
- $conds[] = ActorMigration::newMigration()
- ->getWhere( $db, 'rc_user', FuzzyBot::getUser() )['conds'];
- } else {
- $conds['rc_user'] = FuzzyBot::getUser()->getId();
- }
-
return $conds;
}