Ticket #9455: Video.php.diff

File Video.php.diff, 1.8 KB (added by jlatz@…, 13 years ago)
  • .php

    old new  
    7676            }
    7777            if ($exists) {
    7878                $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);
    8181                if ($width > 0 && $height > 0) {
    8282                    $wscale = video_img_width / $width;
    8383                    $hscale = video_img_height / $height;
     
    112112        global $Category_String;
    113113        return array( 'intid'       => $this->intid,
    114114                      '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).'"' : '')
    116116                                       .'>',
    117117                      'title'       => '<a href="'.$this->url.'">'.$this->title.'</a>',
    118118                      'subtitle'    => $this->subtitle,
     
    166166                    $this->length,
    167167                    $this->showlevel,
    168168                    $this->filename,
    169                     ( @filesize($this->cover_path) > 0 ? $this->cover_file : 'No Cover' ),
     169                    ( @filesize($this->cover_file) > 0 ? $this->cover_file : 'No Cover' ),
    170170                    $this->browse,
    171171                    $this->intid
    172172                    );