Fixing bug where you couldn't set CakeRequest::$base to empty string using config variable App.base

This commit is contained in:
ADmad 2011-10-05 00:46:25 +05:30
parent 042e817e1b
commit dcb704a12b

View file

@ -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.
*