Last modified: 2006-06-29 23:28:28 UTC
I'm splitting this patch out of patch 1762 (bug 5985, "Allow images in the bad image list to be used on specific pages"), as these changes have nothing to with the bad image list whatsoever.
Created attachment 2022 [details] Patch to clean up image gallery rendering code This patch cleans up ImageGallery::toHTML(), factoring the HTML generation out of the various error and corner cases.
Created attachment 2023 [details] Patch to clean up image gallery rendering code (fixed) Oops, didn't split the patch cleanly last time, the check for mParsing was wrong. Should be fixed now.
Created attachment 2027 [details] Patch to clean up image gallery rendering code (minor tweak) Yet another version, this one wraps the error message given if thumbnailing fails into a div, hopefully making it look better. (Can't really test that, since I don't know how to generate such an error.)
Created attachment 2028 [details] Patch to clean up image gallery rendering code (fixed after tweak) That last patch had a bunch of unrelated crap included. This one's what I meant to upload.
Applied on r15164