Mercurial > epgrec.yaz
changeset 74:fce37385c8b4
use autorec_mode even though simple reservation
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 14 Feb 2010 17:00:27 +0900 |
parents | cd64cf013095 |
children | 11f63ae04a96 |
files | simpleReservation.php |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/simpleReservation.php Sun Feb 14 15:43:57 2010 +0900 +++ b/simpleReservation.php Sun Feb 14 17:00:27 2010 +0900 @@ -3,14 +3,17 @@ include_once( INSTALL_PATH . "/DBRecord.class.php" ); include_once( INSTALL_PATH . "/Reservation.class.php" ); include_once( INSTALL_PATH . "/reclib.php" ); +include_once( INSTALL_PATH . "/Settings.class.php" ); if( ! isset( $_GET['program_id'] ) ) exit("Error: 番組が指定されていません" ); $program_id = $_GET['program_id']; try { - Reservation::simple( $program_id ); + $settings = Settings::factory(); + + Reservation::simple( $program_id, 0, $settings->autorec_mode); } catch( Exception $e ) { exit( "Error:". $e->getMessage() ); } -?> \ No newline at end of file +?>