Skip to content

Commit

Permalink
Moving assignment of base into _base().
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 19, 2011
1 parent 79ec163 commit 52467a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/libs/cake_request.php
Expand Up @@ -119,7 +119,7 @@ class CakeRequest implements ArrayAccess {
* @return void
*/
public function __construct($url = null, $parseEnvironment = true) {
$this->base = $this->_base();
$this->_base();
if (empty($url)) {
$url = $this->_url();
}
Expand Down Expand Up @@ -301,7 +301,7 @@ protected function _base() {
}

$this->webroot = $base .'/';
return $base;
return $this->base = $base;
}

$file = '/' . basename($baseUrl);
Expand All @@ -323,7 +323,7 @@ protected function _base() {
$this->webroot .= $webroot . '/';
}
}
return $base . $file;
return $this->base = $base . $file;
}

/**
Expand Down

0 comments on commit 52467a7

Please sign in to comment.