https://bugzilla.wikimedia.org/show_bug.cgi?id=20490
Summary: SyntaxHighlight setup may initialize a different parser
object
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Keywords: easy, patch
Severity: enhancement
Priority: Normal
Component: SyntaxHighlight (GeSHi)
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=6525)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6525)
Proposed fix.
The parser object whose hooks are being initialized is passed as the first
argument to the ParserFirstCallInit hook, but SyntaxHighlight_GeSHi 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).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l