Index: trunk/extensions/AutoProxyBlock/AutoProxyBlock.body.php |
— | — | @@ -63,20 +63,20 @@ |
64 | 64 | if( self::isProxy( $userIP ) ) { |
65 | 65 | if( $wgAutoProxyBlockLog ) { |
66 | 66 | $log = new LogPage( 'proxyblock' ); |
67 | | - $log->addEntry( 'blocked', $title, false, array( $action, $user->mName ) ); |
| 67 | + $log->addEntry( 'blocked', $title, false, array( $action, $user->getName() ) ); |
68 | 68 | |
69 | 69 | // hack for 1.19- |
70 | 70 | $dbw = wfGetDB( DB_MASTER ); |
71 | | - $userID = User::newFromName( 'AutoProxyBlock' ); |
| 71 | + $blocker = User::newFromName( 'AutoProxyBlock' ); |
72 | 72 | $dbw->update( |
73 | 73 | 'logging', |
74 | | - array( 'log_user' => $userID->getID(), 'log_user_text' => 'AutoProxyBlock' ), |
75 | | - array( 'log_type' => 'proxyblock', 'log_user_text' => $user->mName ), |
| 74 | + array( 'log_user' => $blocker->getID(), 'log_user_text' => 'AutoProxyBlock' ), |
| 75 | + array( 'log_type' => 'proxyblock', 'log_user_text' => $user->getName() ), |
76 | 76 | __METHOD__, |
77 | 77 | array( 'ORDER BY' => 'log_timestamp DESC' ) |
78 | 78 | ); |
79 | 79 | } |
80 | | - $result[] = array( 'proxy-blocked', $IP ); |
| 80 | + $result[] = array( 'proxy-blocked', $userIP ); |
81 | 81 | return false; |
82 | 82 | } |
83 | 83 | |
Index: trunk/extensions/AutoProxyBlock/AutoProxyBlock.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | 'path' => __FILE__, |
10 | 10 | 'name' => 'AutoProxyBlock', |
11 | 11 | 'author' => 'Cryptocoryne', |
12 | | - 'version' => '0.9', |
| 12 | + 'version' => '1.0', |
13 | 13 | 'descriptionmsg' => 'autoproxyblock-desc', |
14 | 14 | 'url' => 'http://www.mediawiki.org/wiki/Extension:AutoProxyBlock', |
15 | 15 | ); |