Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -1293,13 +1293,20 @@ |
1294 | 1294 | return $user; |
1295 | 1295 | } |
1296 | 1296 | |
| 1297 | + /** |
| 1298 | + * @param $rules String |
| 1299 | + * @param $textName String |
| 1300 | + * @param $addResultDiv Boolean |
| 1301 | + * @param $canEdit Boolean |
| 1302 | + */ |
1297 | 1303 | static function buildEditBox( $rules, $textName = 'wpFilterRules', $addResultDiv = true, |
1298 | 1304 | $canEdit = true ) { |
1299 | 1305 | global $wgOut; |
1300 | 1306 | |
1301 | | - $readOnlyAttrib = array(); |
1302 | | - if ( !$canEdit ) |
1303 | | - $readOnlyAttrib['readonly'] = 'readonly'; |
| 1307 | + $textareaAttrib = array( 'dir' => 'ltr' ); # Rules are in English |
| 1308 | + if ( !$canEdit ) { |
| 1309 | + $textareaAttrib['readonly'] = 'readonly'; |
| 1310 | + } |
1304 | 1311 | |
1305 | 1312 | global $wgUser; |
1306 | 1313 | $noTestAttrib = array(); |
— | — | @@ -1309,7 +1316,7 @@ |
1310 | 1317 | } |
1311 | 1318 | |
1312 | 1319 | $rules = rtrim( $rules ) . "\n"; |
1313 | | - $rules = Xml::textarea( $textName, $rules, 40, 5, $readOnlyAttrib ); |
| 1320 | + $rules = Xml::textarea( $textName, $rules, 40, 5, $textareaAttrib ); |
1314 | 1321 | |
1315 | 1322 | $dropDown = self::getBuilderValues(); |
1316 | 1323 | // Generate builder drop-down |
Index: trunk/extensions/AbuseFilter/modules/ext.abuseFilter.css |
— | — | @@ -115,9 +115,6 @@ |
116 | 116 | width: 50%; |
117 | 117 | } |
118 | 118 | |
119 | | -/* Rules are in English */ |
120 | | -/* @noflip */textarea#wpFilterRules { direction: ltr; } |
121 | | - |
122 | 119 | /* Name is in site content language */ |
123 | 120 | /* @noflip */.sitedir-ltr .TablePager_col_af_public_comments { |
124 | 121 | direction: ltr; |