From: Bharat M. <bh...@us...> - 2001-07-19 08:53:20
|
Update of /cvsroot/gallery/gallery/classes In directory usw-pr-cvs1:/tmp/cvs-serv26730 Modified Files: Image.php Log Message: Fixed a bug that was causing errors when adding movies. I introduced this when I did the album-upgrade code. Index: Image.php =================================================================== RCS file: /cvsroot/gallery/gallery/classes/Image.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- Image.php 2001/07/18 20:26:06 1.11 +++ Image.php 2001/07/19 08:53:17 1.12 @@ -36,9 +36,11 @@ $this->name = $name; $this->type = $type; - list($w, $h) = getDimensions("$dir/$this->name.$this->type"); - $this->raw_width = $w; - $this->raw_height = $h; + if (!isMovie($this->type)) { + list($w, $h) = getDimensions("$dir/$this->name.$this->type"); + $this->raw_width = $w; + $this->raw_height = $h; + } } function integrityCheck($dir) { |