Index: trunk/phase3/includes/specials/SpecialEmailuser.php |
— | — | @@ -226,10 +226,13 @@ |
227 | 227 | * @param $name String: user name submitted. |
228 | 228 | * @return String: form asking for user name. |
229 | 229 | */ |
230 | | - static function userForm( $name ) { |
231 | | - $string = Xml::openElement( 'form', array( 'method' => 'get', 'action' => '', 'id' => 'askusername' ) ) . |
| 230 | + |
| 231 | + function userForm( $name ) { |
| 232 | + global $wgScript ; |
| 233 | + $string = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'askusername' ) ) . |
| 234 | + Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
232 | 235 | Xml::openElement( 'fieldset' ) . |
233 | | - Html::rawElement( 'legend', null, wfMessage( 'emailtarget' )->parse() ) . |
| 236 | + Html::rawElement( 'legend', null, wfMessage( 'emailtarget' )->parse() ) . |
234 | 237 | Xml::inputLabel( wfMessage( 'emailusername' )->text(), 'target', 'emailusertarget', 30, $name ) . ' ' . |
235 | 238 | Xml::submitButton( wfMessage( 'emailusernamesubmit' )->text() ) . |
236 | 239 | Xml::closeElement( 'fieldset' ) . |