Index: trunk/extensions/ContactPage/SpecialContact.php |
— | — | @@ -60,8 +60,6 @@ |
61 | 61 | wfDebug( "$fname: success.\n" ); |
62 | 62 | $f->showSuccess( ); |
63 | 63 | } else if ( "submit" == $action && $wgRequest->wasPosted() ) {# |
64 | | - wfSetupSession(); #NOTE: make sure we have a session. May be required for captchas to work. |
65 | | - |
66 | 64 | $token = $wgRequest->getVal( 'wpEditToken' ); |
67 | 65 | |
68 | 66 | if( $wgUser->isAnon() ) { |
— | — | @@ -202,6 +200,8 @@ |
203 | 201 | if ( !$wgCaptcha ) return ""; //no captcha installed |
204 | 202 | if ( !@$wgCaptchaTriggers['contactpage'] ) return ""; //don't trigger on contact form |
205 | 203 | |
| 204 | + wfSetupSession(); #NOTE: make sure we have a session. May be required for captchas to work. |
| 205 | + |
206 | 206 | return "<div class='captcha'>" . |
207 | 207 | $wgCaptcha->getForm() . |
208 | 208 | wfMsgWikiHtml( 'contactpage-captcha' ) . |