Skip to content

Commit

Permalink
Adding visibility to a few methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 7, 2010
1 parent 1424e02 commit 22bb07a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/cake_request.php
Expand Up @@ -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);
Expand All @@ -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));
}
Expand Down

0 comments on commit 22bb07a

Please sign in to comment.