Fix documentation error for $expire in WebResponse::setcookie.
authorMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 23 Feb 2013 06:25:19 +0000 (01:25 -0500)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 23 Feb 2013 07:07:43 +0000 (08:07 +0100)
Change-Id: I657ba9b722706d3c71a6fffa3f4b94d35d8de7c5

includes/WebResponse.php

index 37dbef4..3862354 100644 (file)
@@ -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: