X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=70784ba5a7542e58b3b89fc3aacfe2973cd19160;hp=92cb8d8569eb41d1d597e8e84e421bda88ea5b67;hb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;hpb=06d611a3997a63fc54f7141ed9fa3105c9d0a8e4 diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 92cb8d8569..70784ba5a7 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3617,6 +3617,7 @@ function wfCanIPUseHTTPS( $ip ) { * @since 1.25 */ function wfIsInfinity( $str ) { + // These are hardcoded elsewhere in MediaWiki (e.g. mediawiki.special.block.js). $infinityValues = [ 'infinite', 'indefinite', 'infinity', 'never' ]; return in_array( $str, $infinityValues ); }