} else {
$value = $this->mExpirySelection[$action];
}
- if ( $value == 'infinite' || $value == 'indefinite' || $value == 'infinity' ) {
+ if ( wfIsInfinity( $value ) ) {
$time = wfGetDB( DB_SLAVE )->getInfinity();
} else {
$unix = strtotime( $value );
} else {
list( $show, $value ) = explode( ":", $option );
}
- $show = htmlspecialchars( $show );
- $value = htmlspecialchars( $value );
$expiryFormOptions .= Xml::option(
$show,
- $value,
+ htmlspecialchars( $value ),
$this->mExpirySelection[$action] === $value
) . "\n";
}