mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Ficing a couple of notices when using a mocked CakeRequest
This commit is contained in:
parent
633f1dc1e5
commit
e8c73170ba
1 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
$config = Configure::read('App');
|
$config = Configure::read('App');
|
||||||
extract($config);
|
extract($config);
|
||||||
|
|
||||||
if (!$base) {
|
if (empty($base)) {
|
||||||
$base = $this->base;
|
$base = $this->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
$this->webroot = $base . '/';
|
$this->webroot = $base . '/';
|
||||||
return $base;
|
return $base;
|
||||||
}
|
}
|
||||||
if (!$baseUrl) {
|
if (empty($baseUrl)) {
|
||||||
$replace = array('<', '>', '*', '\'', '"');
|
$replace = array('<', '>', '*', '\'', '"');
|
||||||
$base = str_replace($replace, '', dirname(env('PHP_SELF')));
|
$base = str_replace($replace, '', dirname(env('PHP_SELF')));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue