[dev] framework/Browse/Browse.php [PATCH]

Marc Jauvin marc at r4l.com
Thu Sep 1 12:45:59 PDT 2005


This adds another screen resolution to the regex for isMobile for the 
TREO 650.

-- 
Marc Jauvin
http://register4less.com
514-905-6500
-------------- next part --------------
Index: framework/Browser/Browser.php
===================================================================
RCS file: /repository/framework/Browser/Browser.php,v
retrieving revision 1.178
diff -u -r1.178 Browser.php
--- framework/Browser/Browser.php	22 Aug 2005 07:18:09 -0000	1.178
+++ framework/Browser/Browser.php	1 Sep 2005 19:41:59 -0000
@@ -337,7 +337,7 @@
                 /* Some Handhelds have their screen resolution in the
                  * user agent string, which we can use to look for
                  * mobile agents. */
-                if (preg_match('/; (120x160|240x280|240x320)\)/', $this->_agent)) {
+                if (preg_match('/; (120x160|240x280|240x320|320x320)\)/', $this->_agent)) {
                     $this->_mobile = true;
                 }
 


More information about the dev mailing list