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
commit 796b57ea0b
2 changed files with 1 additions and 13 deletions

View File

@ -170,11 +170,7 @@ $THEME->javascripts_footer = array(
'moodlebootstrap', 'moodlebootstrap',
); );
$useragent = ''; if (check_browser_version('MSIE') && !check_browser_version('MSIE', '9.0')) {
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';
} }

View File

@ -55,11 +55,3 @@ $THEME->plugins_exclude_sheets = array(
$THEME->rendererfactory = 'theme_overridden_renderer_factory'; $THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->csspostprocess = 'clean_process_css'; $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';
}