Page MenuHomePhabricator

Special:MIMESearch is broken
Closed, DeclinedPublic

Description

Special:MIMESearch is broken. Neither on Wikipedia nor on my private MW
installation (running from trunk too) it works. Always getting an empty page
(header only).

It seems, that the transform of the input value ($mime) is broken.

A few short tests:

  1. Removing the lines

if ( $major == '' or $minor == '' or !wfSpecialMIMEsearchValidType( $major ) )

		return;

in function wfSpecialMIMEsearch: Header + a list with 0 entries.

  1. Removing the line

WHERE img_major_mime = $major AND img_minor_mime = $minor
in function getSQL(): Header + a full list of _all_ files.

But I cannot figure out where the transform of $mime into $major and $minor is
broken :-(


Version: 1.10.x
Severity: normal

Details

Reference
bz8966

Event Timeline

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

Shame on me :-(

The function is not broken, I havn't had understood the syntax.

Added in r20042 a short description to [[MediaWiki:mimesearch-summary]] for en
and de.