Make iPad NOT redirect to mobile?
Permalink Browser Info Environment
Hi,
Is there a way to make iPad not redirect to mobile?
I changed the 'true' to a 'false' in the iPad detection function, but no luck!
Is there a way to make iPad not redirect to mobile?
I changed the 'true' to a 'false' in the iPad detection function, but no luck!
protected function checkBrowseriPad() { if( stripos($this->_agent,'iPad') !== false ) { $aresult = explode('/',stristr($this->_agent,'Version')); if( isset($aresult[1]) ) { $aversion = explode(' ',$aresult[1]); $this->setVersion($aversion[0]); } else { $this->setVersion(self::VERSION_UNKNOWN); } $this->setMobile(false); $this->setBrowser(self::BROWSER_IPAD); return true; } return false;
Viewing 15 lines of 16 lines. View entire code block.
Type: | Discussion |
---|---|
Status: | New |