Use the request object provided in User::setCookies
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 3 Dec 2014 22:45:26 +0000 (14:45 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 3 Dec 2014 22:47:44 +0000 (14:47 -0800)
commit7cf1c2fea6a2b2251c597c5fd7cf9cbaacbb46d6
tree9f94b58545086fa54317e9e4e60a856de2b18ef4
parent59625b4482d92d9a15efd7662fe3938d4258148f
Use the request object provided in User::setCookies

When calling User::setCookies with a $request object that was not
passed on to the User::setCookie method, which went ahead and
updated the request from RequestContext::getMain rather than
the provided request.

This patch adds another parameter to User::setCookie to accept
a request object, and User::setCookies to pass the request along.

Change-Id: Ie46fd8c90753e8bf54ce58842c08e0519a269582
includes/User.php