Skip to content
Permalink
Browse files

Fixing bug where you couldn't set CakeRequest::$base to empty string …

…using config variable `App.base`
  • Loading branch information...
ADmad committed Oct 4, 2011
1 parent 042e817 commit dcb704a12b245b7560a96ae0ab5a6f08202ec91e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Network/CakeRequest.php
@@ -236,7 +236,7 @@ protected function _base() {
$config = Configure::read('App');
extract($config);
if (empty($base)) {
if (!isset($base)) {
$base = $this->base;
}
if ($base !== false) {
@@ -627,7 +627,7 @@ public function accepts($type = null) {
/**
* 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.
*

0 comments on commit dcb704a

Please sign in to comment.
You can’t perform that action at this time.