From db8739321747950574538e80049f79e515775fa8 Mon Sep 17 00:00:00 2001 From: Brian Holland Date: Thu, 15 Apr 2010 15:32:45 +0000 Subject: The thumbnail_file() function does not always work. Replace with str_replace() function to obtain thumbnail file for "Manage Links" --- modules/GEDFact_assistant/_MEDIA/media_0_inverselink.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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 ''; echo ''; echo ''; -- cgit v1.3