Ticket #10944: 10944-unbreak-playback-on-frontend.patch

File 10944-unbreak-playback-on-frontend.patch, 1.3 KB (added by dekarl@…, 12 years ago)
  • /usr/share/mythtv/mythweb/modules/remote/play_program_on_frontend.php

    old new  
    1414        $host = $_REQUEST['host'];
    1515        $frontends = MythFrontend::findFrontends();
    1616        $frontends[$host]->play_program($chanid, $starttime);
    17         header('Location: tv/detail/'.urlencode($chanid).'/'.urlencode($starttime));
     17        header('Location: '.root.'tv/detail/'.urlencode($chanid).'/'.urlencode($starttime));
    1818        exit;
    1919    }
    2020
    21     $Page_Previous_Location = 'tv/detail/'.urlencode($chanid).'/'.urlencode($starttime);
     21    $Page_Previous_Location = root.'tv/detail/'.urlencode($chanid).'/'.urlencode($starttime);
    2222    $Page_Previous_Location_Name = 'Details';
    2323    $Page_Title_Short = 'Pick Frontend';
    2424
  • /usr/share/mythtv/bindings/php/MythFrontend.php

    old new  
    253253 * @param string $starttime
    254254/**/
    255255    public function play_program($chanid, $starttime) {
    256         $starttime = date('Y-m-d\TH:i:s', $starttime);
     256        $starttime = gmdate('Y-m-d\TH:i:s', $starttime);
    257257        return $this->send_play("program $chanid $starttime resume");
    258258    }
    259259