Permalink
Browse files

MDL-43159 Libraries Wrong naming convention in $supports_json_content…

…type.
  • Loading branch information...
1 parent cf0e970 commit 5a575d84872c3de2dcaaa5b42721eff9af79d5d7 @scara scara committed Dec 4, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/outputrenderers.php
View
@@ -3354,16 +3354,16 @@ public function redirect_message($encodedurl, $message, $delay, $debugdisablered
*/
public function header() {
// MDL-39810: IE doesn't support JSON MIME type if version < 8 or when it runs in Compatibility View.
- $supports_json_contenttype = !check_browser_version('MSIE') ||
+ $supportsjsoncontenttype = !check_browser_version('MSIE') ||
(check_browser_version('MSIE', 8) &&
!(preg_match("/MSIE 7.0/", $_SERVER['HTTP_USER_AGENT']) && preg_match("/Trident\/([0-9\.]+)/", $_SERVER['HTTP_USER_AGENT'])));
// unfortunately YUI iframe upload does not support application/json
if (!empty($_FILES)) {
@header('Content-type: text/plain; charset=utf-8');
- if (!$supports_json_contenttype) {
+ if (!$supportsjsoncontenttype) {
@header('X-Content-Type-Options: nosniff');
}
- } else if (!$supports_json_contenttype) {
+ } else if (!$supportsjsoncontenttype) {
@header('Content-type: text/plain; charset=utf-8');
@header('X-Content-Type-Options: nosniff');
} else {

0 comments on commit 5a575d8

Please sign in to comment.