X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FWebResponse.php;h=458c2079e4fcc46f6b312985575748d085780515;hb=f5fc9f21ead83bbc50544772281996f37f64d17c;hp=c7d0a5bea884242a97284f839cda3ce82b6fd843;hpb=9ba3fca2d8adc56787c8efc32c41424cb212e387;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebResponse.php b/includes/WebResponse.php index c7d0a5bea8..458c2079e4 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -179,6 +179,16 @@ class WebResponse { public function clearCookie( $name, $options = [] ) { $this->setCookie( $name, '', time() - 31536000 /* 1 year */, $options ); } + + /** + * Checks whether this request is performing cookie operations + * + * @return bool + * @since 1.27 + */ + public function hasCookies() { + return (bool)self::$setCookies; + } } /**