From: Reini U. <ru...@us...> - 2004-03-09 12:27:32
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29454/plugin Modified Files: PhotoAlbum.php Log Message: fixed getimagesize problem with local dir. Index: PhotoAlbum.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/PhotoAlbum.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -2 -b -p -d -r1.4 -r1.5 --- PhotoAlbum.php 28 Feb 2004 21:14:08 -0000 1.4 +++ PhotoAlbum.php 9 Mar 2004 12:10:23 -0000 1.5 @@ -266,9 +266,13 @@ extends WikiPlugin } - // FIXME: get getimagesize to work with names with spaces in it + // FIXME: get getimagesize to work with names with spaces in it. + // convert $value["name"] from webpath to local path $size = @getimagesize($value["name"]); // try " " => "\\ " + if (!$size and !empty($value["src"])) { + $size = @getimagesize($value["src"]); if (!$size) { trigger_error("Unable to getimagesize(".$value["name"].")",E_USER_NOTICE); } + } $newwidth = $this->newSize($size[0], $width); @@ -462,4 +466,5 @@ extends WikiPlugin // convert local path to webpath $photos[] = array ("name" => $webpath . "/$file", + "src" => $src . "/$file", "desc" => "", ); @@ -492,4 +497,7 @@ extends WikiPlugin // $Log$ +// Revision 1.5 2004/03/09 12:10:23 rurban +// fixed getimagesize problem with local dir. +// // Revision 1.4 2004/02/28 21:14:08 rurban // generally more PHPDOC docs |