changeset 138:9a27c517df8f

include settings/config_custom.php if it exists so that the default settings may be overridden by the custom settings.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 21 Mar 2010 04:01:33 +0900
parents a18df712fc7e
children 3303335825a3
files config.php.sample
diffstat 1 files changed, 15 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/config.php.sample	Sun Mar 21 03:15:00 2010 +0900
+++ b/config.php.sample	Sun Mar 21 04:01:33 2010 +0900
@@ -85,15 +85,6 @@
 define( "CS1_EPG_CHANNEL", "CS8"  );	// CS1
 define( "CS2_EPG_CHANNEL", "CS24" );	// CS2
 
-
-// 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを
-// 優先する
-if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) {
-	unset($GR_CHANNEL_MAP);
-	include_once( INSTALL_PATH."/settings/gr_channel.php" );
-}
-
-
 // 全国用BSデジタルチャンネルマップ
 $BS_CHANNEL_MAP = array(
         "3001.ontvjapan.com" => "101",
@@ -215,6 +206,21 @@
 	*/
 );
 
+
+// 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを
+// 優先する
+if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) {
+	unset($GR_CHANNEL_MAP);
+	include_once( INSTALL_PATH."/settings/gr_channel.php" );
+}
+
+// カスタマイズした設定をロードし、デフォルト設定をオーバライドする
+// unsetはカスタム設定ファイルの責任で行う
+if( file_exists( INSTALL_PATH."/settings/config_custom.php" ) ) {
+	include_once( INSTALL_PATH."/settings/config_custom.php" );
+}
+
+
 // DBテーブル情報 以下は変更しないでください
 
 define( "RESERVE_TBL",  "reserveTbl" );						// 予約テーブル