r99745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99744‎ | r99745 | r99746 >
Date:23:26, 13 October 2011
Author:catrope
Status:ok
Tags:
Comment:
Address fixme in r99360: submit to $wgScript and set a hidden title field
Modified paths:
  • /trunk/extensions/Contest/specials/SpecialContestant.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/specials/SpecialContestant.php
@@ -98,6 +98,7 @@
9999 }
100100
101101 protected function showPage( ContestContestant $contestant ) {
 102+ global $wgScript;
102103 $out = $this->getOutput();
103104
104105 $out->setPageTitle( wfMsgExt(
@@ -111,7 +112,8 @@
112113
113114 $this->showGeneralInfo( $contestant );
114115
115 - $out->addHTML( '<form method="post" action="' . htmlspecialchars( $this->getTitle( $this->subPage )->getLocalURL() ) . '">' );
 116+ $out->addHTML( '<form method="post" action="' . htmlspecialchars( $wgScript ) . '">' );
 117+ $out->addHTML( Html::hidden( 'title', $this->getTitle( $this->subPage )->getPrefixedDBkey() ) );
116118 $out->addHTML( Html::hidden( 'wpEditToken', $this->getUser()->editToken() ) );
117119
118120 $this->showRating( $contestant );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99360initial woek on commenting amd voting ui for judgesjeroendedauw18:05, 9 October 2011

Status & tagging log