Closed jung921 closed 12 years ago
/web/page_builder/Page.php contains a version check for the iOS version an iDevice is running: if (preg_match('/ipod/i',$user_agent) || preg_match('/iphone/i',$user_agent)) {
if (preg_match('/OS\ (3|4)/i',$user_agent)) {
$type = 'iphone3';
} else {
$type = 'iphone2';
}
}
The problem being that preg_match does a match, not a greater than comparison, and so doesn't recognise iOS 5. A quick fix is to replace the preg_match line with:
if (preg_match('/OS\ (3|4|5)/i',$user_agent)) {
inserting the '|5' string.
There's also a fix in https://github.com/dmolsen/MIT-Mobile-Web/pull/20
Hi there,
I am using your fantastic code to generate some mobile web presence. When I upgrade my iphone to ios5, it changed iphone diplay. it displays smartphone look and feel not the iphone look. any suggestion would be much appreciated.
thanks!