summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/utils/FuzzyBot.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Translate/utils/FuzzyBot.php')
-rw-r--r--www/wiki/extensions/Translate/utils/FuzzyBot.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/wiki/extensions/Translate/utils/FuzzyBot.php b/www/wiki/extensions/Translate/utils/FuzzyBot.php
new file mode 100644
index 00000000..093e39e1
--- /dev/null
+++ b/www/wiki/extensions/Translate/utils/FuzzyBot.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Do it all maintenance account
+ *
+ * @file
+ * @author Niklas Laxström
+ * @copyright Copyright © 2012-2013, Niklas Laxström
+ * @license GPL-2.0-or-later
+ */
+
+/**
+ * FuzzyBot - the misunderstood workhorse.
+ * @since 2012-01-02
+ */
+class FuzzyBot {
+ public static function getUser() {
+ return User::newSystemUser( self::getName(), [ 'steal' => true ] );
+ }
+
+ public static function getName() {
+ global $wgTranslateFuzzyBotName;
+
+ return $wgTranslateFuzzyBotName;
+ }
+}