Typo in example

keith
Posts: 13
Joined: Thu May 30, 2013 2:24 pm

Typo in example

Postby keith » Thu May 30, 2013 4:34 pm

I'm pretty sure there is a typo here

shouldn't the is_mobile_device line read?
$is_mobile_device = ($is_wireless || $is_tablet);

$is_wireless = ($requestingDevice->getCapability('is_wireless_device') == 'true');
$is_smarttv = ($requestingDevice->getCapability('is_smarttv') == 'true');
$is_tablet = ($requestingDevice->getCapability('is_tablet') == 'true');
$is_phone = ($requestingDevice->getCapability('can_assign_phone_number') == 'true');
$is_mobile_device = ($iswireless || $istablet);

from:
http://wurfl.sourceforge.net/php_index.php

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: Typo in example

Postby kamermans » Thu May 30, 2013 5:50 pm

You're correct - thanks for the good catch! We'll get it updated soon.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 1 guest