Permalink
Browse files

Dispatch::baseUrl() needs optimization a little bit

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
1 parent c6c7474 commit b0aec35422733ecdcbca0be8cac6d96cff2989b4 robustsolution committed with markstory Nov 19, 2009
Showing with 0 additions and 5 deletions.
  1. +0 −5 cake/dispatcher.php
View
@@ -367,9 +367,6 @@ function baseUrl() {
$this->webroot = $base .'/';
return $base;
}
- $file = null;
-
- if ($baseUrl) {
$file = '/' . basename($baseUrl);
$base = dirname($baseUrl);
@@ -385,8 +382,6 @@ function baseUrl() {
$this->webroot .= $webroot . '/';
}
return $base . $file;
- }
- return false;
}
/**
* Restructure params in case we're serving a plugin.

0 comments on commit b0aec35

Please sign in to comment.