Permalink
Browse files

MDL-43159 Libraries Wrong naming convention in $compat_view.

  • Loading branch information...
1 parent 3e6e38b commit fcf15debfc07049b62686d7428a2ec3971f44dd2 @scara scara committed with Matteo Scaramuccia Dec 2, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/classes/useragent.php
@@ -500,17 +500,17 @@ public static function check_ie_properties() {
} else {
return false;
}
- $compat_view = false;
+ $compatview = false;
// IE8 and later versions may pretend to be IE7 for intranet sites, use Trident version instead,
// the Trident should always describe the capabilities of IE in any emulation mode.
if ($browser === '7.0' and preg_match("/Trident\/([0-9\.]+)/", $useragent, $match)) {
- $compat_view = true;
+ $compatview = true;
$browser = $match[1] + 4; // NOTE: Hopefully this will work also for future IE versions.
}
$browser = round($browser, 1);
return array(
'version' => $browser,
- 'compatview' => $compat_view
+ 'compatview' => $compatview
);
}

0 comments on commit fcf15de

Please sign in to comment.