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