when blocking a user the option 'anononly' is not available/has no effect
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 16 Mar 2007 10:50:50 +0000 (10:50 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 16 Mar 2007 10:50:50 +0000 (10:50 +0000)
-> do not write this into log

includes/SpecialBlockip.php

index 6ed5468..f427519 100644 (file)
@@ -355,7 +355,8 @@ class IPBlockForm {
         */
        private function blockLogFlags() {
                $flags = array();
-               if( $this->BlockAnonOnly )
+               if( $this->BlockAnonOnly && IP::isIPAddress( $this->BlockAddress ) )
+                                       // when blocking a user the option 'anononly' is not available/has no effect -> do not write this into log
                        $flags[] = 'anononly';
                if( $this->BlockCreateAccount )
                        $flags[] = 'nocreate';