Bug: Incompatible with Variables Extension

Jump to: navigation, search

If used with Extension:Variables any variables set before the call to DPL are cleared by the first DPC call that produces successful results. Thus:

{{#vardefine:foo|bar}}
{{#tag:DynamicPageList| category    = {{#var:foo}} }}
{{#tag:DynamicPageList| category    = {{#var:foo}} }}
{{#var:foo}}

The first DPL will produce the expected results, the second call will produce no results, and the attempt to print out the foo variable at the end will return empty.

The 3rd party extension seems to have had this same problem but have apparently now solved it.

Agrestis14:03, 19 September 2011

I consider this an Extension:VariablesExtension issue. It should make sure the clearState hook is being called for the parser object it's attached to. For example it is also incompatible with the categorytree extension when using the showcount="on" option. (A similar issue was recently fixed in cite in r89220)

(With that said, I suppose the way DynamicPageList calls Parser->transformMsg is kind of a bit odd...)

Bawolff00:56, 20 September 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox