Index: trunk/extensions/AbuseFilter/Views/tools.js |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | function processReautoconfirm( request ) { |
23 | 23 | var response = request.responseText; |
24 | 24 | |
25 | | - if (strlen(response)) { |
| 25 | + if (response && response.length) { |
26 | 26 | jsMsg( response ); |
27 | 27 | } |
28 | 28 | |
Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -238,7 +238,9 @@ |
239 | 239 | } |
240 | 240 | |
241 | 241 | public static function ajaxReAutoconfirm( $username ) { |
242 | | - |
| 242 | + global $wgUser; |
| 243 | + wfLoadExtensionMessages( 'AbuseFilter' ); |
| 244 | + |
243 | 245 | if (!$wgUser->isAllowed('abusefilter-modify')) { |
244 | 246 | // Don't allow it. |
245 | 247 | return wfMsg( 'abusefilter-reautoconfirm-notallowed' ); |