Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -46,9 +46,12 @@ |
47 | 47 | ), |
48 | 48 | 'misc' => array( |
49 | 49 | 'in' => 'in', |
| 50 | + 'contains' => 'contains', |
50 | 51 | 'like' => 'like', |
51 | 52 | '""' => 'stringlit', |
52 | | - 'rlike' => 'rlike' |
| 53 | + 'rlike' => 'rlike', |
| 54 | + 'cond ? iftrue : iffalse' => 'tern', |
| 55 | + 'if cond then iftrue else iffalse end' => 'cond', |
53 | 56 | ), |
54 | 57 | 'funcs' => array( |
55 | 58 | 'length(string)' => 'length', |
Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php |
— | — | @@ -230,7 +230,10 @@ |
231 | 231 | 'abusefilter-edit-builder-misc-in' => 'contained in string (in)', |
232 | 232 | 'abusefilter-edit-builder-misc-like' => 'Matches pattern (like)', |
233 | 233 | 'abusefilter-edit-builder-misc-rlike' => 'Matches regex (rlike)', |
| 234 | + 'abusefilter-edit-builder-misc-contains' => 'Left string contains right string (contains)', |
234 | 235 | 'abusefilter-edit-builder-misc-stringlit' => 'String literal ("")', |
| 236 | + 'abusefilter-edit-builder-misc-tern' => 'Ternery operator (X ? Y : Z)', |
| 237 | + 'abusefilter-edit-builder-misc-cond' => 'Conditional (if X then Y else Z)', |
235 | 238 | 'abusefilter-edit-builder-group-funcs' => 'Functions', |
236 | 239 | 'abusefilter-edit-builder-funcs-length' => 'String length (length)', |
237 | 240 | 'abusefilter-edit-builder-funcs-lcase' => 'To lower case (lcase)', |