diff getepg.old.php @ 112:b3ba2658a228

merged with upstream
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 13 Mar 2010 18:27:33 +0900
parents 3bed74eca373
children 2646140c5ba7
line wrap: on
line diff
--- a/getepg.old.php	Fri Mar 12 15:32:27 2010 +0900
+++ b/getepg.old.php	Sat Mar 13 18:27:33 2010 +0900
@@ -1,6 +1,8 @@
 #!/usr/bin/php
 <?php
-  include_once('config.php');
+  $script_path = dirname( __FILE__ );
+  chdir( $script_path );
+  include_once( $script_path . '/config.php');
   include_once( INSTALL_PATH . '/DBRecord.class.php' );
   include_once( INSTALL_PATH . '/Reservation.class.php' );
   include_once( INSTALL_PATH . '/Keyword.class.php' );