Page MenuHomePhabricator

Clean up rendering code in ImageGallery.php
Closed, ResolvedPublic

Description

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.


Version: 1.7.x
Severity: enhancement

Details

Reference
bz6490

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:22 PM
bzimport set Reference to bz6490.
bzimport added a subscriber: Unknown Object (MLST).

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.

attachment cleanupgalleryrendering.diff ignored as obsolete

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.

attachment cleanupgalleryrendering.diff ignored as obsolete

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.)

attachment cleanupgalleryrendering.diff ignored as obsolete

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.

Attached: