Index: trunk/extensions/UsabilityInitiative/OptIn/SpecialOptIn.php |
— | — | @@ -125,7 +125,6 @@ |
126 | 126 | $this->showOptInButtons(); |
127 | 127 | $wgOut->addWikiMsg( 'optin-improvements' ); |
128 | 128 | } |
129 | | - $wgOut->addHTML( Xml::hidden( 'opt', $opt ) ); |
130 | 129 | } |
131 | 130 | |
132 | 131 | function showOptInButtons() { |
— | — | @@ -202,13 +201,14 @@ |
203 | 202 | UsabilityInitiativeHooks::addStyle( 'OptIn/OptIn.css', |
204 | 203 | $wgOptInStyleVersion ); |
205 | 204 | |
206 | | - $retval .= Xml::openElement( |
| 205 | + $retval = Xml::openElement( |
207 | 206 | 'form', array( |
208 | 207 | 'method' => 'post', |
209 | 208 | 'action' => $this->getTitle( $this->mOrigin )->getLinkURL(), |
210 | 209 | 'id' => 'optin-survey', |
211 | 210 | ) |
212 | 211 | ); |
| 212 | + $retval .= Xml::hidden( 'opt', 'out' ); |
213 | 213 | $retval .= Xml::openElement( 'dl' ); |
214 | 214 | foreach ( $wgOptInSurvey as $id => $question ) { |
215 | 215 | switch ( $question['type'] ) { |