fixed bad path for css on windows

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Matt Curry 2010-03-19 17:20:51 -04:00 committed by Mark Story
parent 8a4ad9f51a
commit cc59b04ad3

View file

@ -76,7 +76,7 @@ class CakeTestSuiteDispatcher {
*/ */
function CakeTestSuiteDispatcher() { function CakeTestSuiteDispatcher() {
$this->_baseUrl = $_SERVER['PHP_SELF']; $this->_baseUrl = $_SERVER['PHP_SELF'];
$dir = dirname($this->_baseUrl); $dir = rtrim(dirname($this->_baseUrl), '\\');
$this->_baseDir = ($dir === '/') ? $dir : $dir . '/'; $this->_baseDir = ($dir === '/') ? $dir : $dir . '/';
} }