Page 1 of 1

Old Browser warning

PostPosted: 25 Sep 2015, 11:25
by Ashwini
In Internet Explorer 11 , display following warning ...But Internet Explorer 11 is not old browser.
Warning! Your browser is old.
It has known security flaws and you will not see all the features of some websites.
Please download and install one of the modern browsers:

Re: Old Browser warning

PostPosted: 25 Sep 2015, 12:26
by Xpycm
Hello.
Thank you for your post.

It seems like something is wrong with line User-Agent, as IE 11 is usually indetified as "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko" and the message about the browser being outdated doesn't appear under IE 11.

Try to apply the following method:

Open protected\components\oldbrowsers\CheckBrowser.php
In method public static function isOld()
before
Code: Select all
$browser self::getBrowser(); 

insert
Code: Select all
return false


Or delete the following code from themes\atlas\views\layouts\main.php:
Code: Select all
<?php if (CheckBrowser::isOld()) : ?>
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/css/oldbrowsers/check_browser.css" type="text/css" media="screen">
    <?php
    
echo CheckBrowser::warning(nulltrue);
    echo 
'</body></html>';
    exit;
    
?>
<?php 
endif;?>