X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=1219da51d1f8626f23f6930c40a81998117b2b5d;hb=d3efb28185e84383ee21f77871f592fbe72f4846;hp=f777a37df40ab40581adb1adb5a2978e30a53bd6;hpb=b532948417ca768feb7b3ac3503548af46e66fd5;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 );