https://bugzilla.wikimedia.org/show_bug.cgi?id=51324
Helder <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Provide a (reliable) way to |Provide a (reliable) way to |test if a string is in a |test if a value is in a |array of strings (e.g. if a |array (e.g. if a user |user recently edited a |recently edited a page) |page) | --- Comment #1 from Helder <[email protected]> --- There seems to be a piece of dead code for this at https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FAbuseFilter.git/HEAD/AbuseFilter.parser.php#L223 public static function listContains( $value, $list ) { // Should use built-in PHP function somehow foreach ( $list->data as $item ) { if ( self::equals( $value, $item ) ) { return true; } } return false; } -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
