Changed else if to elseif.

This commit is contained in:
frederikweber 2012-11-18 14:06:46 +01:00
parent 9b479958f6
commit 374dd55270

View file

@ -411,7 +411,7 @@ class CakeResponse {
}
if (strpos($this->_contentType, 'text/') === 0) {
$this->header('Content-Type', "{$this->_contentType}; charset={$this->_charset}");
} else if ($this->_contentType === 'application/json') {
} elseif ($this->_contentType === 'application/json') {
$this->header('Content-Type', "{$this->_contentType}; charset=UTF-8");
} else {
$this->header('Content-Type', "{$this->_contentType}");