https://bugzilla.wikimedia.org/show_bug.cgi?id=65687

            Bug ID: 65687
           Summary: mw.loadData can be used to pass data between #invoke's
                    by reading frame arguments
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Scribunto
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

Create the following as Module:LoadData/data:
return { mw.getCurrentFrame().args[1] }

Create the following as Module:LoadData:
local p = {}
function p.main(frame)
return mw.loadData('Module:LoadData/data')[1]
end
return p

Create the following as Module:LoadData/doc:
{{#invoke:LoadData|main|some data to share}}
{{#invoke:LoadData|main}}
{{#invoke:LoadData|main}}

This will return the following:
some data to share
some data to share
some data to share

This indicates a break of isolation between the different calls to #invoke.

-- 
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

Reply via email to