Dispatch::baseUrl() needs optimization a little bit

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
robustsolution 2009-11-19 20:22:50 +00:00 committed by mark_story
parent c6c7474502
commit b0aec35422

View file

@ -367,9 +367,6 @@ class Dispatcher extends Object {
$this->webroot = $base .'/';
return $base;
}
$file = null;
if ($baseUrl) {
$file = '/' . basename($baseUrl);
$base = dirname($baseUrl);
@ -386,8 +383,6 @@ class Dispatcher extends Object {
}
return $base . $file;
}
return false;
}
/**
* Restructure params in case we're serving a plugin.
*