Ticket #6466: mythweb.fixrewritebase.patch

File mythweb.fixrewritebase.patch, 1.5 KB (added by raymond@…, 11 years ago)
  • mythplugins/mythweb/modules/tv/tmpl/default/upcoming.php

     
    436436
    437437</table>
    438438<?php
    439     $ical_href = str_replace(root, root.'ical/', $_SERVER['REQUEST_URI']).'?';
     439    if (root == '/')
     440        $ical_href = '/ical'.$_SERVER['REQUEST_URI'].'?';
     441    else
     442        $ical_href = str_replace(root, root.'ical/', $_SERVER['REQUEST_URI']).'?';
    440443    if (!$_SESSION['scheduled_recordings']['disp_scheduled'])
    441444        $ical_href .='skip_scheduled&';
    442445    if (!$_SESSION['scheduled_recordings']['disp_conflicts'])
  • mythplugins/mythweb/modules/tv/tmpl/default/upcoming.php

     
    436436
    437437</table>
    438438<?php
    439     $ical_href = str_replace(root, root.'ical/', $_SERVER['REQUEST_URI']).'?';
     439    if (root == '/')
     440        $ical_href = '/ical'.$_SERVER['REQUEST_URI'].'?';
     441    else
     442        $ical_href = str_replace(root, root.'ical/', $_SERVER['REQUEST_URI']).'?';
    440443    if (!$_SESSION['scheduled_recordings']['disp_scheduled'])
    441444        $ical_href .='skip_scheduled&';
    442445    if (!$_SESSION['scheduled_recordings']['disp_conflicts'])