https://bugzilla.wikimedia.org/show_bug.cgi?id=33491
Web browser: ---
Bug #: 33491
Summary: 'SMWResultPrinter' constructor should require a Parser
object
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
I think there should be a parameter for the 'SMWResultPrinter' class
constructor to pass the parser object of the rendering process the result
printing is a part of.
Right now there is $wgParser being used in a few places within
'SMWResultPrinter' class. We also have specific result formats making use of
$wgParser and at least within (SRFs) 'Array' and 'Hash' formats I know for sure
that this could lead to some ugly bugs under special circumstances. One such
case would be for example special page transclusion where the query printer is
being used within that special page - in that case $wgParser does not point to
the special pages Parser object!
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l