Posted by tengoku on February 22, 2013 at 12:34am
1 follower
| Project: | Mobile Tools |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi All
I am trying to get in work the mobile_tools_browscap module using the latest version of mobile_tools, browscap and purl. I detected on mobile_tools.module in mobile_tools_get_active_device_group() function that the _mobile_tools_get_active_purl_modifiers() is delivering all my mobile tools but later is returning by default the first element in that array,
I had to modify line 686 to this:
if(mobile_tools_browscap_activate($device_group)){
return $device_group;
as you can see i am forcing to use browscap to detect my mobile group (wich works) but i dont know how to code this in a cleaner way.
cheers,
Carlos Garcia