Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -624,7 +624,7 @@ |
625 | 625 | wfProfileIn( __METHOD__ ); |
626 | 626 | $tempWgCookieDomain = $wgCookieDomain; |
627 | 627 | $wgCookieDomain = $this->getBaseDomain(); |
628 | | - $wgRequest->response()->setcookie( 'optin', $value ); |
| 628 | + $wgRequest->response()->setcookie( 'optin', $value, 0, '' ); |
629 | 629 | $wgCookieDomain = $tempWgCookieDomain; |
630 | 630 | wfProfileOut( __METHOD__ ); |
631 | 631 | } |
— | — | @@ -632,7 +632,7 @@ |
633 | 633 | private function getOptInOutCookie() { |
634 | 634 | global $wgRequest; |
635 | 635 | wfProfileIn( __METHOD__ ); |
636 | | - $optInCookie = $wgRequest->getCookie( 'optin' ); |
| 636 | + $optInCookie = $wgRequest->getCookie( 'optin', '' ); |
637 | 637 | wfProfileOut( __METHOD__ ); |
638 | 638 | return $optInCookie; |
639 | 639 | } |