CC-3077: Preference/stream-setting page has no Vorbis metadata option

- done
This commit is contained in:
James 2011-11-23 17:03:30 -05:00
parent 7ac13d26f0
commit a886b53d74
5 changed files with 56 additions and 21 deletions

View file

@ -60,12 +60,13 @@ class Application_Model_StreamSetting {
public static function setStreamSetting($data){
global $CC_DBC;
foreach($data as $key=>$d){
if($key == "output_sound_device"){
if($key == "output_sound_device" || $key == "icecast_vorbis_metadata"){
$v = $d == 1?"true":"false";
$sql = "UPDATE cc_stream_setting SET value='$v' WHERE keyname='$key'";
$CC_DBC->query($sql);
}
else{
var_dump($key);
$temp = explode('_', $key);
$prefix = $temp[0];
foreach($d as $k=>$v){