+
+ $scExpiryOptions = wfMsgForContent( 'ipboptions' ); // FIXME: use its own message
+
+ $showProtectOptions = ($scExpiryOptions !== '-' && !$this->disabled);
+ if( !$showProtectOptions )
+ $mProtectother = $mProtectexpiry;
+
+ $expiryFormOptions = Xml::option( wfMsg( 'protect-otheroption' ), 'wpProtectExpiryList' );
+ foreach( explode(',', $scExpiryOptions) as $option ) {
+ if ( strpos($option, ":") === false ) $option = "$option:$option";
+ list($show, $value) = explode(":", $option);
+ $show = htmlspecialchars($show);
+ $value = htmlspecialchars($value);
+ $expiryFormOptions .= Xml::option( $show, $value, $this->mExpiryList === $value ? true : false ) . "\n";
+ }
+
+ $reasonDropDown = Xml::listDropDown( 'wpProtectReasonList',
+ wfMsgForContent( 'protect-dropdown' ),
+ wfMsgForContent( 'protect-otherreason' ), '', 'mwProtect-reason', 4 );