mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Changed else if to elseif.
This commit is contained in:
parent
9b479958f6
commit
374dd55270
1 changed files with 1 additions and 1 deletions
|
@ -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}");
|
||||
|
|
Loading…
Reference in a new issue