Merge branch 'MDL-39968-master' of git://github.com/danpoltawski/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2013-06-05 02:32:29 +02:00
2 changed files with 1 additions and 13 deletions
+1 -5
View File
@@ -170,11 +170,7 @@ $THEME->javascripts_footer = array(
'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';
}
-8
View File
@@ -55,11 +55,3 @@ $THEME->plugins_exclude_sheets = array(
$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';
}