r56394 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56393‎ | r56394 | r56395 >
Date:22:13, 15 September 2009
Author:brion
Status:deferred
Tags:
Comment:
Reapply live hacks from r53208
Modified paths:
  • /branches/wmf-deployment-work/extensions/SecurePoll/includes/Auth.php (modified) (history)
  • /branches/wmf-deployment-work/extensions/SecurePoll/includes/VotePage.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment-work/extensions/SecurePoll/includes/Auth.php
@@ -201,10 +201,16 @@
202202 */
203203 function getUserParams( $user ) {
204204 global $wgServer;
 205+ if ( substr( $wgServer, 0, 5 ) == 'https' ) {
 206+ global $site, $lang;
 207+ $server = "$lang.$site.org";
 208+ } else {
 209+ $server = preg_replace( '!.*/(.*)$!', '$1', $wgServer );
 210+ }
205211 $params = array(
206212 'name' => $user->getName(),
207213 'type' => 'local',
208 - 'domain' => preg_replace( '!.*/(.*)$!', '$1', $wgServer ),
 214+ 'domain' => $server,
209215 'url' => $user->getUserPage()->getFullURL(),
210216 'properties' => array(
211217 'wiki' => wfWikiID(),
Index: branches/wmf-deployment-work/extensions/SecurePoll/includes/VotePage.php
@@ -242,6 +242,8 @@
243243 Xml::openElement( 'form', array( 'action' => $url, 'method' => 'post' ) ) .
244244 Xml::hidden( 'token', SecurePoll_RemoteMWAuth::encodeToken( $wgUser->getToken() ) ) .
245245 Xml::hidden( 'id', $wgUser->getId() ) .
 246+ Xml::hidden( 'site', $GLOBALS['site'] ) .
 247+ Xml::hidden( 'lang', $GLOBALS['lang'] ) .
246248 Xml::submitButton( wfMsg( 'securepoll-jump' ) ) .
247249 '</form>'
248250 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r53208Apply live hacks, local merges, and removal of SVN externals -- all copied fr...brion23:50, 13 July 2009

Status & tagging log