|
From: <var...@us...> - 2021-12-06 14:34:33
|
Revision: 10734
http://sourceforge.net/p/phpwiki/code/10734
Author: vargenau
Date: 2021-12-06 14:34:32 +0000 (Mon, 06 Dec 2021)
Log Message:
-----------
PhotoAlbum plugin: fix getimagesize
Modified Paths:
--------------
trunk/lib/plugin/PhotoAlbum.php
Modified: trunk/lib/plugin/PhotoAlbum.php
===================================================================
--- trunk/lib/plugin/PhotoAlbum.php 2021-12-06 13:34:26 UTC (rev 10733)
+++ trunk/lib/plugin/PhotoAlbum.php 2021-12-06 14:34:32 UTC (rev 10734)
@@ -283,15 +283,7 @@
break;
}
- // 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"] . ")");
- }
- }
+ $size = getimagesize($value["src"]); // try " " => "\\ "
$newwidth = $this->newSize($size[0], $width);
if ($width != 'auto' && $newwidth > 0) {
$params = array_merge($params, array("width" => $newwidth));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|