CC-3301: Add ability to switch stereo/mono stream in stream settings
-fixed
This commit is contained in:
parent
8b5f94fa9f
commit
859445c766
8 changed files with 238 additions and 54 deletions
|
@ -183,11 +183,13 @@ class Application_Model_StreamSetting
|
|||
}
|
||||
$v = trim($v);
|
||||
|
||||
#escape double single quotes CC-3926
|
||||
$v = str_replace("'", "''", $v);
|
||||
$sql = "UPDATE cc_stream_setting SET value='$v' WHERE keyname='$keyname'";
|
||||
$stream_setting = CcStreamSettingQuery::create()->filterByDbKeyName($keyname)->findOne();
|
||||
if (is_null($stream_setting)) {
|
||||
throw new Exception("Keyname $keyname does not exist!");
|
||||
}
|
||||
|
||||
$con->exec($sql);
|
||||
$stream_setting->setDbValue($v);
|
||||
$stream_setting->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue