Index: trunk/extensions/ConfirmAccount/RequestAccount_body.php |
— | — | @@ -96,11 +96,9 @@ |
97 | 97 | } |
98 | 98 | |
99 | 99 | $wgOut->addWikiText( wfMsg( "requestaccount-text" ) ); |
100 | | - |
101 | | - $titleObj = Title::makeTitle( NS_SPECIAL, 'RequestAccount' ); |
102 | 100 | |
103 | 101 | $form = Xml::openElement( 'form', array( 'method' => 'post', 'name' => 'accountrequest', |
104 | | - 'action' => $titleObj->getLocalUrl(), 'enctype' => 'multipart/form-data' ) ); |
| 102 | + 'action' => $this->getTitle()->getLocalUrl(), 'enctype' => 'multipart/form-data' ) ); |
105 | 103 | $form .= '<fieldset><legend>' . wfMsgHtml('requestaccount-leg-user') . '</legend>'; |
106 | 104 | $form .= wfMsgExt( 'requestaccount-acc-text', array('parse') )."\n"; |
107 | 105 | $form .= '<table cellpadding=\'4\'>'; |
— | — | @@ -210,7 +208,7 @@ |
211 | 209 | $form .= $captcha->getForm(); |
212 | 210 | $form .= '</fieldset>'; |
213 | 211 | } |
214 | | - $form .= Xml::hidden( 'title', $titleObj->getPrefixedUrl() )."\n"; |
| 212 | + $form .= Xml::hidden( 'title', $this->getTitle()->getPrefixedDBKey() )."\n"; |
215 | 213 | $form .= Xml::hidden( 'wpEditToken', $wgUser->editToken() )."\n"; |
216 | 214 | $form .= Xml::hidden( 'attachment', $this->mPrevAttachment )."\n"; |
217 | 215 | $form .= Xml::hidden( 'forgotAttachment', $this->mForgotAttachment )."\n"; |
Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | function showForm( $msg='' ) { |
198 | 198 | global $wgOut, $wgUser, $wgLang, $wgAccountRequestTypes; |
199 | 199 | |
200 | | - $titleObj = Title::makeTitle( NS_SPECIAL, "ConfirmAccounts/{$this->specialPageParameter}" ); |
| 200 | + $titleObj = SpecialPage::getTitleFor( 'confirmAccounts', $this->specialPageParameter ); |
201 | 201 | |
202 | 202 | $row = $this->getRequest(); |
203 | 203 | if( !$row || $row->acr_rejected && !$this->showRejects ) { |