mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-43159 Libraries Wrong naming convention in $compat_view.
This commit is contained in:
parent
c36a2401ab
commit
aea486c8d5
1 changed files with 3 additions and 3 deletions
|
@ -500,17 +500,17 @@ class core_useragent {
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$compat_view = false;
|
$compatview = false;
|
||||||
// IE8 and later versions may pretend to be IE7 for intranet sites, use Trident version instead,
|
// 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.
|
// 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)) {
|
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 = $match[1] + 4; // NOTE: Hopefully this will work also for future IE versions.
|
||||||
}
|
}
|
||||||
$browser = round($browser, 1);
|
$browser = round($browser, 1);
|
||||||
return array(
|
return array(
|
||||||
'version' => $browser,
|
'version' => $browser,
|
||||||
'compatview' => $compat_view
|
'compatview' => $compatview
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue