Ticket #9455: Video.php.diff
File Video.php.diff, 1.8 KB (added by , 13 years ago) |
---|
-
.php
old new 76 76 } 77 77 if ($exists) { 78 78 $this->cover_url = 'pl/coverart/'.$this->cover_file; 79 $this->cover_ path = $path;80 list($width, $height) = @getimagesize($this->cover_ path);79 $this->cover_file = path; 80 list($width, $height) = @getimagesize($this->cover_file); 81 81 if ($width > 0 && $height > 0) { 82 82 $wscale = video_img_width / $width; 83 83 $hscale = video_img_height / $height; … … 112 112 global $Category_String; 113 113 return array( 'intid' => $this->intid, 114 114 'img' => '<img width="'.$this->cover_scaled_width.'" height="'.$this->cover_scaled_height.'" alt="'.t('Missing Cover').'"' 115 .(($_SESSION["show_video_covers"] && file_exists($this->cover_ path)) ? ' src="data/video_covers/'.basename($this->cover_file).'"' : '')115 .(($_SESSION["show_video_covers"] && file_exists($this->cover_url)) ? ' src="data/video_covers/'.basename($this->cover_file).'"' : '') 116 116 .'>', 117 117 'title' => '<a href="'.$this->url.'">'.$this->title.'</a>', 118 118 'subtitle' => $this->subtitle, … … 166 166 $this->length, 167 167 $this->showlevel, 168 168 $this->filename, 169 ( @filesize($this->cover_ path) > 0 ? $this->cover_file : 'No Cover' ),169 ( @filesize($this->cover_file) > 0 ? $this->cover_file : 'No Cover' ), 170 170 $this->browse, 171 171 $this->intid 172 172 );