mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing bug where you couldn't set CakeRequest::$base to empty string using config variable App.base
This commit is contained in:
parent
042e817e1b
commit
dcb704a12b
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ class CakeRequest implements ArrayAccess {
|
|||
$config = Configure::read('App');
|
||||
extract($config);
|
||||
|
||||
if (empty($base)) {
|
||||
if (!isset($base)) {
|
||||
$base = $this->base;
|
||||
}
|
||||
if ($base !== false) {
|
||||
|
@ -627,7 +627,7 @@ class CakeRequest implements ArrayAccess {
|
|||
/**
|
||||
* Parse the HTTP_ACCEPT header and return a sorted array with content types
|
||||
* as the keys, and pref values as the values.
|
||||
*
|
||||
*
|
||||
* Generally you want to use CakeRequest::accept() to get a simple list
|
||||
* of the accepted content types.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue