Browse Source

Changed else if to elseif.

frederikweber 13 years ago
parent
commit
374dd55270
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Network/CakeResponse.php

+ 1 - 1
lib/Cake/Network/CakeResponse.php

@@ -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}");