Page MenuHomePhabricator

ImageMap setup may initialize a different parser object
Closed, ResolvedPublic

Description

Author: bugs

Description:
Proposed fix

The parser object whose hooks are being initialized is passed as the first
argument to the ParserFirstCallInit hook, but ImageMap initializes
$wgParser no matter if it is really the one that generated the hook call.

This patch fixes this, by initializing the parser object passed as argument to
the hook. A separate function is provided for pre-1.12 Mediawiki compatibility
(where the only parser object is really $wgParser).

Similar to bug 20490.


Version: unspecified
Severity: minor

Attached:

Details

Reference
bz20491

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:52 PM
bzimport set Reference to bz20491.
Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:12 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:23 AM