From 22bb07abb0bda06d33d0ab9588eaa40aff937f58 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 7 Nov 2010 01:36:37 -0400 Subject: [PATCH] Adding visibility to a few methods. --- cake/libs/cake_request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/cake_request.php b/cake/libs/cake_request.php index 52c44fd9930..7a464f742a1 100644 --- a/cake/libs/cake_request.php +++ b/cake/libs/cake_request.php @@ -582,7 +582,7 @@ public function host() { * @param int $tldLength Number of segments your tld contains * @return string Domain name without subdomains. */ - function domain($tldLength = 1) { + public function domain($tldLength = 1) { $segments = explode('.', $this->host()); $domain = array_slice($segments, -1 * ($tldLength + 1)); return implode('.', $domain); @@ -594,7 +594,7 @@ function domain($tldLength = 1) { * @param int $tldLength Number of segments your tld contains. * @return array of subdomains. */ - function subdomains($tldLength = 1) { + public function subdomains($tldLength = 1) { $segments = explode('.', $this->host()); return array_slice($segments, 0, -1 * ($tldLength + 1)); }