Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -620,12 +620,15 @@ |
621 | 621 | * @param $value string |
622 | 622 | */ |
623 | 623 | private function setOptInOutCookie( $value ) { |
624 | | - global $wgCookieDomain, $wgRequest; |
| 624 | + global $wgCookieDomain, $wgRequest, $wgCookiePrefix; |
625 | 625 | wfProfileIn( __METHOD__ ); |
626 | 626 | $tempWgCookieDomain = $wgCookieDomain; |
627 | 627 | $wgCookieDomain = $this->getBaseDomain(); |
| 628 | + $tempWgCookiePrefix = $wgCookiePrefix; |
| 629 | + $wgCookiePrefix = ''; |
628 | 630 | $wgRequest->response()->setcookie( 'optin', $value, 0, '' ); |
629 | 631 | $wgCookieDomain = $tempWgCookieDomain; |
| 632 | + $wgCookiePrefix = $tempWgCookiePrefix; |
630 | 633 | wfProfileOut( __METHOD__ ); |
631 | 634 | } |
632 | 635 | |