X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=1219da51d1f8626f23f6930c40a81998117b2b5d;hb=bf1341985b4c925079905373e419b15221f24af0;hp=f777a37df40ab40581adb1adb5a2978e30a53bd6;hpb=0b10f2191eb420c108eb60909468e3e54e4e6815;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index f777a37df4..1219da51d1 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -156,7 +156,7 @@ class ProtectionForm { } else { $value = $this->mExpirySelection[$action]; } - if ( $value == 'infinite' || $value == 'indefinite' || $value == 'infinity' ) { + if ( wfIsInfinity( $value ) ) { $time = wfGetDB( DB_SLAVE )->getInfinity(); } else { $unix = strtotime( $value );