FuzzyBot.php

Go to the documentation of this file.
00001 <?php
00015 class FuzzyBot {
00016     public static function getUser() {
00017         $bot = User::newFromName( self::getName() );
00018         if ( $bot->isAnon() ) {
00019             $bot->addToDatabase();
00020         }
00021 
00022         return $bot;
00023     }
00024 
00025     public static function getName() {
00026         global $wgTranslateFuzzyBotName;
00027 
00028         return $wgTranslateFuzzyBotName;
00029     }
00030 }
Generated on Tue Oct 29 00:00:25 2013 for MediaWiki Translate Extension by  doxygen 1.6.3