From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/Cookie.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'includes/Cookie.php') diff --git a/includes/Cookie.php b/includes/Cookie.php index 95a4599f..76739ccc 100644 --- a/includes/Cookie.php +++ b/includes/Cookie.php @@ -139,6 +139,10 @@ class Cookie { return $ret; } + /** + * @param $domain + * @return bool + */ protected function canServeDomain( $domain ) { if ( $domain == $this->domain || ( strlen( $domain ) > strlen( $this->domain ) @@ -151,20 +155,19 @@ class Cookie { return false; } + /** + * @param $path + * @return bool + */ protected function canServePath( $path ) { - if ( $this->path && substr_compare( $this->path, $path, 0, strlen( $this->path ) ) == 0 ) { - return true; - } - - return false; + return ( $this->path && substr_compare( $this->path, $path, 0, strlen( $this->path ) ) == 0 ); } + /** + * @return bool + */ protected function isUnExpired() { - if ( $this->isSessionKey || $this->expires > time() ) { - return true; - } - - return false; + return $this->isSessionKey || $this->expires > time(); } } -- cgit v1.2.3-54-g00ecf