Typo in example
Posted: 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
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