mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating CakeTestSuiteDispatcher parsing of .
Better handling of cases where dirname() of PHP_SELF returns only '/'.
This commit is contained in:
parent
ff3aefe93a
commit
88a09cfbb4
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ class CakeTestSuiteDispatcher {
|
|||
*/
|
||||
function CakeTestSuiteDispatcher() {
|
||||
$this->_baseUrl = $_SERVER['PHP_SELF'];
|
||||
$this->_baseDir = dirname($this->_baseUrl) . '/';
|
||||
$dir = dirname($this->_baseUrl);
|
||||
$this->_baseDir = ($dir === '/') ? $dir : $dir . '/';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue