Also theme_clean does the same sniffing, but is not necessary as its
included by bootstrapbase
'moodlebootstrap',
);
-$useragent = '';
-if (!empty($_SERVER['HTTP_USER_AGENT'])) {
- $useragent = $_SERVER['HTTP_USER_AGENT'];
-}
-if (strpos($useragent, 'MSIE 8') || strpos($useragent, 'MSIE 7')) {
+if (check_browser_version('MSIE') && !check_browser_version('MSIE', '9.0')) {
$THEME->javascripts[] = 'html5shiv';
}
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->csspostprocess = 'clean_process_css';
-
-$useragent = '';
-if (!empty($_SERVER['HTTP_USER_AGENT'])) {
- $useragent = $_SERVER['HTTP_USER_AGENT'];
-}
-if (strpos($useragent, 'MSIE 8') || strpos($useragent, 'MSIE 7')) {
- $THEME->javascripts[] = 'html5shiv';
-}