diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/Cookie.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/Cookie.php')
-rw-r--r-- | includes/Cookie.php | 23 |
1 files changed, 13 insertions, 10 deletions
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(); } } |