Ticket #7674: Video.php.diff
File Video.php.diff, 1.1 KB (added by , 14 years ago) |
---|
-
./classes/Video.php
old new 1 1 <?php 2 3 2 class Video { 4 3 5 4 var $intid; … … 53 52 $this->length = $video['length']; 54 53 $this->showlevel = $video['showlevel']; 55 54 $this->filename = $video['filename']; 56 $this->cover_file = $video['coverfile']; 55 $this->cover_root = 'data/video_covers/'; 56 $this->cover_file = $this->cover_root . $video['coverfile']; 57 57 $this->browse = $video['browse']; 58 58 // And the artwork URL 59 59 if ($this->cover_file != 'No Cover' && file_exists($this->cover_file) ) { … … 146 146 $this->length, 147 147 $this->showlevel, 148 148 $this->filename, 149 ( @filesize( $this->cover_file) > 0 ? $this->cover_file : 'No Cover' ),149 ( @filesize('data/video_covers/'.$this->cover_file) > 0 ? $this->cover_file : 'No Cover' ), 150 150 $this->browse, 151 151 $this->intid 152 152 );