# HG changeset patch # User Yoshiki Yazawa # Date 1266134427 -32400 # Node ID fce37385c8b4d853bf43bc67e2428a659239e8a2 # Parent cd64cf013095922caaa5f48d1e0a9c8d819de406 use autorec_mode even though simple reservation diff -r cd64cf013095 -r fce37385c8b4 simpleReservation.php --- 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 +?>