Last modified: 2009-09-04 01:05:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22491, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20491 - ImageMap setup may initialize a different parser object
ImageMap setup may initialize a different parser object
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Tim Starling
: easy, patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-03 18:43 UTC by Juliano F. Ravasi
Modified: 2009-09-04 01:05 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Proposed fix (913 bytes, patch)
2009-09-03 18:43 UTC, Juliano F. Ravasi
Details

Description Juliano F. Ravasi 2009-09-03 18:43:52 UTC
Created attachment 6526 [details]
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.
Comment 1 Tim Starling 2009-09-04 01:05:52 UTC
Fixed in 55796.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links