http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99745
Revision: 99745
Author: catrope
Date: 2011-10-13 23:26:33 +0000 (Thu, 13 Oct 2011)
Log Message:
-----------
Address fixme in r99360: submit to $wgScript and set a hidden title field
Modified Paths:
--------------
trunk/extensions/Contest/specials/SpecialContestant.php
Modified: trunk/extensions/Contest/specials/SpecialContestant.php
===================================================================
--- trunk/extensions/Contest/specials/SpecialContestant.php 2011-10-13
23:13:59 UTC (rev 99744)
+++ trunk/extensions/Contest/specials/SpecialContestant.php 2011-10-13
23:26:33 UTC (rev 99745)
@@ -98,6 +98,7 @@
}
protected function showPage( ContestContestant $contestant ) {
+ global $wgScript;
$out = $this->getOutput();
$out->setPageTitle( wfMsgExt(
@@ -111,7 +112,8 @@
$this->showGeneralInfo( $contestant );
- $out->addHTML( '<form method="post" action="' .
htmlspecialchars( $this->getTitle( $this->subPage )->getLocalURL() ) . '">' );
+ $out->addHTML( '<form method="post" action="' .
htmlspecialchars( $wgScript ) . '">' );
+ $out->addHTML( Html::hidden( 'title', $this->getTitle(
$this->subPage )->getPrefixedDBkey() ) );
$out->addHTML( Html::hidden( 'wpEditToken',
$this->getUser()->editToken() ) );
$this->showRating( $contestant );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs