| @@ 351-366 (lines=16) @@ | ||
| 348 | $fileContent = file_get_contents($fileContent[0]['thumbnail_large']);  | 
                                |
| 349 | }  | 
                                |
| 350 | ||
| 351 |         if ($fileContent) { | 
                                |
| 352 |             if (file_put_contents($absoluteFileName = ($baseFolder.$fileName), $fileContent)) { | 
                                |
| 353 | $image = Image::create([  | 
                                |
| 354 | "Filename" => $folder->getFilename().$fileName,  | 
                                |
| 355 | "Title" => $this->Title,  | 
                                |
| 356 | "Name" => $fileName,  | 
                                |
| 357 | "ParentID" => $folder->ID,  | 
                                |
| 358 | "OwnerID" => Member::currentUserID(),  | 
                                |
| 359 | ]);  | 
                                |
| 360 | ||
| 361 |                 if ($image->write()) { | 
                                |
| 362 | $this->CoverID = $image->ID;  | 
                                |
| 363 | $this->write();  | 
                                |
| 364 | }  | 
                                |
| 365 | }  | 
                                |
| 366 | }  | 
                                |
| 367 | }  | 
                                |
| 368 | ||
| 369 | }  | 
                                |
| @@ 351-366 (lines=16) @@ | ||
| 348 | break;  | 
                                |
| 349 | }  | 
                                |
| 350 | ||
| 351 |         if ($fileContent) { | 
                                |
| 352 |             if (file_put_contents($absoluteFileName = ($baseFolder.$fileName), $fileContent)) { | 
                                |
| 353 | $image = Image::create([  | 
                                |
| 354 | "Filename" => $folder->getFilename().$fileName,  | 
                                |
| 355 | "Title" => $this->Title,  | 
                                |
| 356 | "Name" => $fileName,  | 
                                |
| 357 | "ParentID" => $folder->ID,  | 
                                |
| 358 | "OwnerID" => Member::currentUserID(),  | 
                                |
| 359 | ]);  | 
                                |
| 360 | ||
| 361 |                 if ($image->write()) { | 
                                |
| 362 | $this->CoverID = $image->ID;  | 
                                |
| 363 | $this->write();  | 
                                |
| 364 | }  | 
                                |
| 365 | }  | 
                                |
| 366 | }  | 
                                |
| 367 | }  | 
                                |
| 368 | ||
| 369 |     public function getVideoOptions() { | 
                                |