r101104 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101103‎ | r101104 | r101105 >
Date:00:55, 28 October 2011
Author:preilly
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -620,12 +620,15 @@
621621 * @param $value string
622622 */
623623 private function setOptInOutCookie( $value ) {
624 - global $wgCookieDomain, $wgRequest;
 624+ global $wgCookieDomain, $wgRequest, $wgCookiePrefix;
625625 wfProfileIn( __METHOD__ );
626626 $tempWgCookieDomain = $wgCookieDomain;
627627 $wgCookieDomain = $this->getBaseDomain();
 628+ $tempWgCookiePrefix = $wgCookiePrefix;
 629+ $wgCookiePrefix = '';
628630 $wgRequest->response()->setcookie( 'optin', $value, 0, '' );
629631 $wgCookieDomain = $tempWgCookieDomain;
 632+ $wgCookiePrefix = $tempWgCookiePrefix;
630633 wfProfileOut( __METHOD__ );
631634 }
632635

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101103fix cookie prefixpreilly00:55, 28 October 2011

Status & tagging log