Ticket #9598: 9598_mythweb_schedules.patch

File 9598_mythweb_schedules.patch, 1.1 KB (added by Marc Randolph <mrand@…>, 9 years ago)
  • schedules_manual.php

    old new  
    2121       $schedule =& Schedule::find($_GET['recordid']);
    2222   // Not a manual schedule
    2323       if (empty($schedule->search) || $schedule->search != searchtype_manual)
    24             redirect_browser('tv/schedules');
     24            redirect_browser(root_url.'tv/schedules');
    2525   }
    2626// Create a new, empty schedule
    2727   else
     
    5050           // Redirect back to the schedule list
    5151               add_warning(t('The requested recording schedule has been deleted.'));
    5252               save_session_errors();
    53                 header('Location: tv/schedules');
     53                header('Location: '.root_url.'tv/schedules');
    5454               exit;
    5555           }
    5656       }
     
    106106       // Save the schedule
    107107           $schedule->save($type);
    108108       // Redirect to the new schedule
    109             header('Location: tv/schedules/manual/'.$schedule->recordid);
     109            header('Location: '.root_url.'tv/schedules/manual/'.$schedule->recordid);
    110110           exit;
    111111       }