Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ApacheGallery] Bug w/ GalleryCopyrightImage



On Mon, Sep 29, 2003 at 11:03:50AM -0500, Christopher Knight wrote:
> I am getting random errors in apache's logs:
> 
> "[error] GalleryCopyrightImage  was not found"
> 
> I do not have GalleryCopyrightImage defined in my httpd.conf.
> 
> I chased it down in the code (r215).  The problem is in sub resizepicture.  
> It prints an error meant for invalid file names.

It was introduced in r209

> Here is a diff that fixes it (It's all really in the first new line
> line, everything else is just indented over):

I've fixed it with:
-       if (-f $copyrightfile and (my $logo=Image::Imlib2->load($copyrightfile))) {
+       if (($copyrightfile ne '') and (-f $copyrightfile) and (my $logo=Image::Imlib2->load($copyrightfile))) {

And committed the fix to r216. It should appear as a snapshot when
Michael sees this.


-- 
Andreas Plesner Jacobsen | Hello, GORRY-O!!  I'm a GENIUS from HARVARD!!
_______________________________________________
users mailing list
[email protected]
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers