From 7526d017f0764522a3bcdbdfe85f29d15516bbc4 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 2 Mar 2011 21:00:53 -0500 Subject: [PATCH] Clarifying what tld means. --- cake/libs/cake_request.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cake/libs/cake_request.php b/cake/libs/cake_request.php index 90d42826f..d51e808d5 100644 --- a/cake/libs/cake_request.php +++ b/cake/libs/cake_request.php @@ -532,7 +532,8 @@ class CakeRequest implements ArrayAccess { /** * Get the domain name and include $tldLength segments of the tld. * - * @param int $tldLength Number of segments your tld contains + * @param int $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld. + * While `example.co.uk` contains 2. * @return string Domain name without subdomains. */ public function domain($tldLength = 1) { @@ -544,7 +545,8 @@ class CakeRequest implements ArrayAccess { /** * Get the subdomains for a host. * - * @param int $tldLength Number of segments your tld contains. + * @param int $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld. + * While `example.co.uk` contains 2. * @return array of subdomains. */ public function subdomains($tldLength = 1) {