diff --git a/branches/fixes/0.27/classes/Video.php b/branches/fixes/0.27/classes/Video.php
a
|
b
|
|
168 | 168 | $this->length, |
169 | 169 | $this->showlevel, |
170 | 170 | $this->filename, |
171 | | ( @filesize($this->cover_file) > 0 ? $this->cover_file : 'No Cover' ), |
| 171 | ( @filesize(setting("VideoArtworkDir", hostname)."/".basename($this->cover_file)) > 0 ? basename($this->cover_file) : 'No Cover' ), |
172 | 172 | $this->browse, |
173 | 173 | $this->intid |
174 | 174 | ); |
diff --git a/branches/fixes/0.27/modules/video/edit.php b/branches/fixes/0.27/modules/video/edit.php
a
|
b
|
|
55 | 55 | $Video->showlevel = $_REQUEST['showlevel']; |
56 | 56 | $Video->browse = $_REQUEST['browse']; |
57 | 57 | if (is_uploaded_file($_FILES['coverfile']['tmp_name'])) { |
58 | | $filename = setting('VideoArtworkDir', hostname).'/id-'.$_REQUEST['intid'].'.jpg'; |
59 | | move_uploaded_file($_FILES['coverfile']['tmp_name'], $filename); |
60 | | chmod($filename, 0644); // make cover file readable by other users |
| 58 | $filename = 'id'.$_REQUEST['intid'].'.jpg'; |
| 59 | move_uploaded_file($_FILES['coverfile']['tmp_name'], setting('VideoArtworkDir', hostname).'/'.$filename); |
| 60 | chmod(setting('VideoArtworkDir', hostname).'/'.$filename, 0644); // make cover file readable by other users |
61 | 61 | $Video->cover_file = $filename; |
62 | 62 | } |
63 | 63 | $Video->save(); |