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

Kunal Mehta (Legoktm) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easy
                 CC|                            |[email protected]

--- Comment #2 from Kunal Mehta (Legoktm) <[email protected]> ---
That function uses $wgLang and $wgUser, which are evil globals.

Each parent caller (through various functions) provides context, which is some
object that implements IContextSource. The code should simply pass the context
down and use $context->getLanguage() and $context->getUser() instead of relying
on globals.

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

Reply via email to