Ticket #367: mythweb-spv.patch

File mythweb-spv.patch, 1.1 KB (added by ciaranj+mythtv@…, 15 years ago)

MythWeb Orange SPV Patch

  • mythweb/includes/init.php

     
    107107    require_once "includes/mobile.php";
    108108    if (isMobileUser()) {
    109109    // Browser is mobile but does it accept HTML? If not, use the WML theme.
    110         if (browserAcceptsMediaType(array('text/html'))) {
     110        if (browserAcceptsMediaType(array('text/html', '\*/\*'))) {
    111111            define('Theme', 'wap');
    112112        } else {
    113113            define('Theme', 'wml');
  • mythweb/includes/mobile.php

     
    6969    $mobiles = array(/* Phones using the Series 60 platform, e.g. Nokia 3650 and 6600. */
    7070             'Series 60' => array('width' => 176, 'height' => 208),
    7171             'Series60' => array('width' => 176, 'height' => 208),
     72             'C500' => array('width'=>176, 'height'=> 220), // SPV C500
    7273
    7374             /* Phones using the Series 90 platform, e.g. Nokia 7710. */
    7475             'Series 90' => array('width' => 640, 'height' => 320),