CC-1665: Scheduled stream rebroadcasting and recording

-change behaviour so that the webstream is not saved as soon as it it created.
This commit is contained in:
Martin Konecny 2012-08-22 14:04:01 -04:00
parent 24988616b3
commit c8c257a330
2 changed files with 22 additions and 11 deletions

View file

@ -7,9 +7,11 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
public function __construct($webstream)
{
//TODO: hacky...
Logging::info("x ".$webstream);
if (is_int($webstream)) {
$this->webstream = CcWebstreamQuery::create()->findPK($webstream);
if (is_null($this->webstream)) {
throw new Exception();
}
} else {
$this->webstream = $webstream;
}