Bug #3874 fix flash wrong message when checking flash the flash plugin

skala
Juan Carlos Raña 14 years ago
parent 7bc80f9d17
commit 7da2a77993
  1. 16
      user_portal.php

@ -228,13 +228,15 @@ else{
//check for flash and message //check for flash and message
$sniff_notification = ''; $sniff_notification = '';
$some_activex=$_SESSION['sniff_check_some_activex'];
if (! preg_match("/flash_yes/", $_SESSION['sniff_check_some_activex']) && ! preg_match("/flash_yes/", $_SESSION['sniff_check_some_plugins'])) { $some_plugins=$_SESSION['sniff_check_some_plugins'];
$sniff_notification = Display::return_message(get_lang('NoFlash'), 'warning', true); if(!empty($some_activex) || !empty($some_plugins)){
//js verification - To annoying of redirecting every time the page if (! preg_match("/flash_yes/", $some_activex) && ! preg_match("/flash_yes/", $some_plugins)) {
$controller->tpl->assign('sniff_notification', $sniff_notification); $sniff_notification = Display::return_message(get_lang('NoFlash'), 'warning', true);
} //js verification - To annoying of redirecting every time the page
$controller->tpl->assign('sniff_notification', $sniff_notification);
}
}
//$controller->tpl->assign('hot_courses', $controller->return_hot_courses()); //$controller->tpl->assign('hot_courses', $controller->return_hot_courses());
$controller->tpl->assign('plugin_courses_block', $controller->return_courses_main_plugin()); $controller->tpl->assign('plugin_courses_block', $controller->return_courses_main_plugin());

Loading…
Cancel
Save