From 3f4e273a7b3d0f1611e2a3552fdeb283256b3bfb Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Sat, 23 Feb 2013 01:25:19 -0500 Subject: [PATCH] Fix documentation error for $expire in WebResponse::setcookie. Change-Id: I657ba9b722706d3c71a6fffa3f4b94d35d8de7c5 --- includes/WebResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 37dbef48c7..3862354aca 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -42,7 +42,8 @@ class WebResponse { * Set the browser cookie * @param $name String: name of cookie * @param $value String: value to give cookie - * @param $expire Int: number of seconds til cookie expires + * @param $expire Int: Unix timestamp (in seconds) when the cookie should expire. + * 0 (the default) causes it to expire $wgCookieExpiration seconds from now. * @param $prefix String: Prefix to use, if not $wgCookiePrefix (use '' for no prefix) * @param $domain String: Cookie domain to use, if not $wgCookieDomain * @param $forceSecure Bool: -- 2.20.1