Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: commits

[8565] Fixed bug 1461 , Find Media was giving an error when thumbnails

 

 

Bricolage commits RSS feed   Index | Next | Previous | View Threaded


slanning at bricolage

Apr 9, 2009, 2:41 AM

Post #1 of 1 (877 views)
Permalink
[8565] Fixed bug 1461 , Find Media was giving an error when thumbnails

Revision: 8565
Author: slanning
Date: 2009-04-09 02:41:50 -0700 (Thu, 09 Apr 2009)
ViewCVS: http://viewsvn.bricolage.cc/?rev=8565&view=rev

Log Message:
-----------
Fixed bug 1461 , Find Media was giving an error when thumbnails couldn't be created.
I think this isn't the real fix, or at least not a complete fix. For some reason, files ending in ".JPG" are given the MIME type "none", while ".jpg" works correctly.

Bugzilla Links:
--------------
http://bugs.bricolage.cc/show_bug.cgi?id=1461

Modified Paths:
--------------
bricolage/trunk/comp/workflow/manager/dhandler
bricolage/trunk/lib/Bric/Changes.pod

Modified: bricolage/trunk/comp/workflow/manager/dhandler
===================================================================
--- bricolage/trunk/comp/workflow/manager/dhandler 2009-04-08 08:19:09 UTC (rev 8564)
+++ bricolage/trunk/comp/workflow/manager/dhandler 2009-04-09 09:41:50 UTC (rev 8565)
@@ -102,7 +102,7 @@
# If we get a thumbnail URI, we have an image. Otherwise, simply return
# a space to fill the column properly because we aren't an image object
# but USE_THUMBNAILS is on.
- my $thumb_uri = $selfobj->thumbnail_uri or return ' ';
+ my $thumb_uri = eval { $selfobj->thumbnail_uri } or return ' ';
return qq{ <img src="$thumb_uri" />};
}


Modified: bricolage/trunk/lib/Bric/Changes.pod
===================================================================
--- bricolage/trunk/lib/Bric/Changes.pod 2009-04-08 08:19:09 UTC (rev 8564)
+++ bricolage/trunk/lib/Bric/Changes.pod 2009-04-09 09:41:50 UTC (rev 8565)
@@ -460,7 +460,7 @@
=item *

Fixed bug 1458, where related media that failed to be thumbnailed caused the
-Story Profile to error. [Scott]
+Story Profile to error. Similarly fixed bug 1461 for Find Media. [Scott]

=back

Bricolage commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.