Apply live hack from Wikimedia code base -- remove unused commented-out checker patte...
[lhc/web/wiklou.git] / includes / RecentChange.php
index 2db82ca..750404a 100644 (file)
@@ -258,19 +258,9 @@ class RecentChange
 
        # Makes an entry in the database corresponding to an edit
        public static function notifyEdit( $timestamp, &$title, $minor, &$user, $comment,
-               $oldId, $lastTimestamp, $bot = "default", $ip = '', $oldSize = 0, $newSize = 0,
+               $oldId, $lastTimestamp, $bot, $ip = '', $oldSize = 0, $newSize = 0,
                $newId = 0)
        {
-
-               global $wgRequest;
-
-               if ( $bot === 'default' ) {
-                       $bot = $user->isAllowed( 'bot' );
-                       if ( $bot ) {
-                               $bot = $wgRequest->getBool( 'bot' , true );
-                       }
-               }
-
                if ( !$ip ) {
                        $ip = wfGetIP();
                        if ( !$ip ) {
@@ -317,23 +307,15 @@ class RecentChange
         * Note: the title object must be loaded with the new id using resetArticleID()
         * @todo Document parameters and return
         */
-       public static function notifyNew( $timestamp, &$title, $minor, &$user, $comment, $bot = 'default',
+       public static function notifyNew( $timestamp, &$title, $minor, &$user, $comment, $bot,
          $ip='', $size = 0, $newId = 0 )
        {
-               global $wgRequest;
-
                if ( !$ip ) {
                        $ip = wfGetIP();
                        if ( !$ip ) {
                                $ip = '';
                        }
                }
-               if ( $bot === 'default' ) {
-                       $bot = $user->isAllowed( 'bot' );
-                       if ( $bot ) {
-                               $bot = $wgRequest->getBool( 'bot' , true );
-                       }
-               }
 
                $rc = new RecentChange;
                $rc->mAttribs = array(