Index: branches/wmf/1.18wmf1/extensions/CheckUser/CheckUser.hooks.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | // Our squid XFFs can flood this up sometimes |
19 | 19 | $isSquidOnly = self::XFFChainIsSquid( $xff ); |
20 | 20 | // Get agent |
21 | | - $agent = $wgRequest->getHeader( 'User-Agent' ); |
| 21 | + $agent = wfGetAgent(); |
22 | 22 | // Store the log action text for log events |
23 | 23 | // $rc_comment should just be the log_comment |
24 | 24 | // BC: check if log_type and log_action exists |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | // Our squid XFFs can flood this up sometimes |
82 | 82 | $isSquidOnly = self::XFFChainIsSquid( $xff ); |
83 | 83 | // Get agent |
84 | | - $agent = $wgRequest->getHeader( 'User-Agent' ); |
| 84 | + $agent = wfGetAgent(); |
85 | 85 | $dbw = wfGetDB( DB_MASTER ); |
86 | 86 | $cuc_id = $dbw->nextSequenceValue( 'cu_changes_cu_id_seq' ); |
87 | 87 | $rcRow = array( |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | // Our squid XFFs can flood this up sometimes |
129 | 129 | $isSquidOnly = self::XFFChainIsSquid( $xff ); |
130 | 130 | // Get agent |
131 | | - $agent = $wgRequest->getHeader( 'User-Agent' ); |
| 131 | + $agent = wfGetAgent(); |
132 | 132 | $dbw = wfGetDB( DB_MASTER ); |
133 | 133 | $cuc_id = $dbw->nextSequenceValue( 'cu_changes_cu_id_seq' ); |
134 | 134 | $rcRow = array( |
— | — | @@ -182,7 +182,7 @@ |
183 | 183 | // Our squid XFFs can flood this up sometimes |
184 | 184 | $isSquidOnly = self::XFFChainIsSquid( $xff ); |
185 | 185 | // Get agent |
186 | | - $agent = $wgRequest->getHeader( 'User-Agent' ); |
| 186 | + $agent = wfGetAgent(); |
187 | 187 | $dbw = wfGetDB( DB_MASTER ); |
188 | 188 | $cuc_id = $dbw->nextSequenceValue( 'cu_changes_cu_id_seq' ); |
189 | 189 | $rcRow = array( |