Index: branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialContestant.php |
— | — | @@ -121,7 +121,8 @@ |
122 | 122 | |
123 | 123 | $this->showGeneralInfo( $contestant ); |
124 | 124 | |
125 | | - $out->addHTML( '<form method="post" action="' . htmlspecialchars( $wgScript ) . '">' ); |
| 125 | + $action = SpecialPage::getTitleFor( 'Contestant', $contestant->getField( 'id' ) ); |
| 126 | + $out->addHTML( '<form method="post" action="' . $action->getLocalURL() . '">' ); |
126 | 127 | $out->addHTML( Html::hidden( 'title', $this->getTitle( $this->subPage )->getPrefixedDBkey() ) ); |
127 | 128 | $out->addHTML( Html::hidden( 'wpEditToken', $this->getUser()->editToken() ) ); |
128 | 129 | |