Mercurial > epgrec.yaz
diff Settings.class.php @ 69:1033324d7ecc
Merge branch 'origin/testing'
author | yoneda <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Tue, 03 Nov 2009 14:54:40 +0900 |
parents | a2c4665b310c 3d6e7c606896 |
children | 11f63ae04a96 cce6f88590fd |
line wrap: on
line diff
--- a/Settings.class.php Wed Oct 21 16:57:26 2009 +0900 +++ b/Settings.class.php Tue Nov 03 14:54:40 2009 +0900 @@ -9,7 +9,17 @@ if( file_exists( INSTALL_PATH . self::CONFIG_XML ) ) { $xmlfile = file_get_contents(INSTALL_PATH . self::CONFIG_XML); - return new self($xmlfile); + $obj = new self($xmlfile); + + // 8月14日以降に追加した設定項目の自動生成 + + // キーワード自動録画の録画モード + if( $obj->exists("autorec_mode") == 0 ) { + $obj->autorec_mode = 0; + $obj->save(); + } + + return $obj; } else { // 初回起動 @@ -103,6 +113,11 @@ // 1分あたりの高さ $xml->height_per_hour = 120; + // 8月14日版以降に追加した設定項目 + + // キーワード自動録画の録画モード + $xml->autorec_mode = 0; + $xml->save(); return $xml; @@ -128,4 +143,4 @@ $this->asXML(INSTALL_PATH . self::CONFIG_XML); } } -?> +?> \ No newline at end of file