mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-38016 Theme Bootstrap: Fix for unit tests undefined variable
This commit is contained in:
parent
29c1fb339d
commit
686730243e
@ -159,7 +159,11 @@ $THEME->javascripts = array(
|
|||||||
'headercollapse',
|
'headercollapse',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') || strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7')) {
|
$useragent = '';
|
||||||
|
if (!empty($_SERVER['HTTP_USER_AGENT'])) {
|
||||||
|
$useragent = $_SERVER['HTTP_USER_AGENT'];
|
||||||
|
}
|
||||||
|
if (strpos($useragent, 'MSIE 8') || strpos($useragent, 'MSIE 7')) {
|
||||||
$THEME->javascripts[] = 'html5shiv';
|
$THEME->javascripts[] = 'html5shiv';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user