Closed (fixed)
Project:
Mobile theme selection
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2008 at 16:34 UTC
Updated:
18 Oct 2009 at 15:50 UTC
This patch updates mobile phone detection to detect the iPhone and the iPod touch. It also removes checking for PPC, since this detects PowerPC Macs, and one of the other strings should match on a PocketPC.
diff -u --exclude '*~' --exclude '*#' --new-file -r ../orig-modules/mobit/mobit.module mobit/mobit.module
--- ../orig-modules/mobit/mobit.module 2007-03-13 01:47:35.000000000 +0000
+++ mobit/mobit.module 2008-07-17 06:01:34.000000000 +0000
@@ -25,9 +25,11 @@
}
// Check if it is a moblizable client (make sure any updates here go to mobilize.php as well)
if (strpos($acpt,'wml') || strpos($uAgt,'PDXGW') || strpos($uAgt,'portalmmm') ||
- strpos($uAgt,'DoCoMo') || strpos($uAgt,'Windows CE') || strpos($uAgt,'PPC') ||
+ strpos($uAgt,'DoCoMo') || strpos($uAgt,'Windows CE') || strpos($uAgt,'IEMobile') ||
strpos($uAgt,'Palm') || strpos($uAgt,'BlackBerry') || strpos($uAgt,'Symbian') ||
- strpos($uAgt,'dopod')) {
+ strpos($uAgt,'dopod') || strpos($uAgt,'iPhone') || strpos($uAgt,'iPod') ||
+ strpos($uAgt,'Mobile')
+ ) {
return true;
}
else
Comments
Comment #1
dave reidProject is abandoned and marking its issues as fixed. Anyone using or interested in this might want to investigate using Mobile Tools.