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: