Closed (fixed)
Project:
Mobile Tools
Version:
6.x-2.1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 14:54 UTC
Updated:
7 Apr 2011 at 02:51 UTC
I am just using theme switching (despite it not being recommended), but need the option to override by adding ?mobile=false to the url, for example.
I have added this snippet to the end of _mobile_tools_is_mobile_device() function.
if ($_GET['mobile'] == 'false') $mobile_browser = 'desktop';
just before
$result = $mobile_browser;
return $result;
Is this something that should/could be added as standard?
Comments
Comment #1
twom commentedCurrently the ?mobile=false is not used anymore.
From now you can use the ?device=mobile, ?device=desktop functionality!