diff options
| author | Brian Holland <windmillway2@gmail.com> | 2010-04-15 15:32:45 +0000 |
|---|---|---|
| committer | Brian Holland <windmillway2@gmail.com> | 2010-04-15 15:32:45 +0000 |
| commit | db8739321747950574538e80049f79e515775fa8 (patch) | |
| tree | 95461f3d8ce8a1772cf8be164212b504c79bfc18 | |
| parent | 002088668215b21dd4114d2d2150f2a10f5bb1a1 (diff) | |
| download | webtrees-db8739321747950574538e80049f79e515775fa8.tar.gz webtrees-db8739321747950574538e80049f79e515775fa8.tar.bz2 webtrees-db8739321747950574538e80049f79e515775fa8.zip | |
The thumbnail_file() function does not always work.
Replace with str_replace() function to obtain thumbnail file for "Manage Links"
| -rw-r--r-- | modules/GEDFact_assistant/_MEDIA/media_0_inverselink.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/GEDFact_assistant/_MEDIA/media_0_inverselink.php b/modules/GEDFact_assistant/_MEDIA/media_0_inverselink.php index 6028bb0ecb..3b23f82b1d 100644 --- a/modules/GEDFact_assistant/_MEDIA/media_0_inverselink.php +++ b/modules/GEDFact_assistant/_MEDIA/media_0_inverselink.php @@ -150,7 +150,8 @@ if ($action == "choose" && $paramok) { ->execute(array($mediaid, WT_GED_ID)) ->fetchOne(); $filename = str_replace(" ", "%20", $filename); - $thumbnail = thumbnail_file($filename, false, false); + // $thumbnail = thumbnail_file($filename, false, false); + $thumbnail = str_replace("media/", "media/thumbs/", $filename); echo '<img src = ', $thumbnail, ' class="thumbheight" />'; echo '</td></tr></table>'; echo '</td></tr>'; |
