From fcf15debfc07049b62686d7428a2ec3971f44dd2 Mon Sep 17 00:00:00 2001 From: Matteo Scaramuccia Date: Mon, 2 Dec 2013 19:12:46 +0100 Subject: [PATCH] MDL-43159 Libraries Wrong naming convention in $compat_view. --- lib/classes/useragent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/useragent.php b/lib/classes/useragent.php index 3782b5ce7e8..26ccba912ab 100644 --- a/lib/classes/useragent.php +++ b/lib/classes/useragent.php @@ -500,17 +500,17 @@ class core_useragent { } 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 ); }