I am using Joomla 1.7 with a Yootheme template. There is an option to display an 'Upgrade Your Browser' page to IE6 users, I want to display it to IE7 users as well. How would I modify this code to do it?
public function isIE6() {
if ($this['useragent']->browser() == 'msie' && $this['useragent']->version() == '6.0') {
if ($this->get('forwardie6') !== null) {
$this->cookie('WarpForwardie6', (int) $this->get('forwardie6') == 0 ? 'no' : 'yes');
}
}
return false;
}
I reckon there are no other functions related to IE6 so ...
I'd simply change
if ($this['useragent']->browser() == 'msie' && $this['useragent']->version() == '6.0') {
into
if ($this['useragent']->browser() == 'msie' && ($this['useragent']->version() == '6.0' || $this['useragent']->version() == '7.0' )) {
I don't expect any further issues related to forcing IE7 to be treated as IE6