} else {
$value = $this->mExpirySelection[$action];
}
- if ( $value == 'infinite' || $value == 'indefinite' || $value == 'infinity' ) {
+ if ( wfIsInfinity( $value ) ) {
$time = wfGetDB( DB_SLAVE )->getInfinity();
} else {
$unix = strtotime( $value );