Skip to content

Commit

Permalink
Dispatch::baseUrl() needs optimization a little bit
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
robustsolution authored and markstory committed Nov 22, 2009
1 parent c6c7474 commit b0aec35
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cake/dispatcher.php
Expand Up @@ -367,9 +367,6 @@ function baseUrl() {
$this->webroot = $base .'/';
return $base;
}
$file = null;

if ($baseUrl) {
$file = '/' . basename($baseUrl);
$base = dirname($baseUrl);

Expand All @@ -385,8 +382,6 @@ function baseUrl() {
$this->webroot .= $webroot . '/';
}
return $base . $file;
}
return false;
}
/**
* Restructure params in case we're serving a plugin.
Expand Down

0 comments on commit b0aec35

Please sign in to comment.