diff options
Diffstat (limited to 'www/wiki/extensions/Translate/utils/FuzzyBot.php')
-rw-r--r-- | www/wiki/extensions/Translate/utils/FuzzyBot.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/www/wiki/extensions/Translate/utils/FuzzyBot.php b/www/wiki/extensions/Translate/utils/FuzzyBot.php index e9992117..093e39e1 100644 --- a/www/wiki/extensions/Translate/utils/FuzzyBot.php +++ b/www/wiki/extensions/Translate/utils/FuzzyBot.php @@ -5,7 +5,7 @@ * @file * @author Niklas Laxström * @copyright Copyright © 2012-2013, Niklas Laxström - * @license GPL-2.0+ + * @license GPL-2.0-or-later */ /** @@ -14,12 +14,7 @@ */ class FuzzyBot { public static function getUser() { - $bot = User::newFromName( self::getName() ); - if ( $bot->isAnon() ) { - $bot->addToDatabase(); - } - - return $bot; + return User::newSystemUser( self::getName(), [ 'steal' => true ] ); } public static function getName() { |