r100390 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100389‎ | r100390 | r100391 >
Date:22:44, 20 October 2011
Author:reedy
Status:ok
Tags:
Comment:
Partial merge of r100388
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialContestant.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialContestant.php
@@ -121,7 +121,8 @@
122122
123123 $this->showGeneralInfo( $contestant );
124124
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() . '">' );
126127 $out->addHTML( Html::hidden( 'title', $this->getTitle( $this->subPage )->getPrefixedDBkey() ) );
127128 $out->addHTML( Html::hidden( 'wpEditToken', $this->getUser()->editToken() ) );
128129

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100388Fix post urls when placing ratingsreedy22:39, 20 October 2011

Status & tagging log