Page MenuHomePhabricator

DynamicSidebar should not use $wgUser inside $wgExtensionFunctions
Closed, DuplicatePublic

Description

From the documentation:

Note however that at this point the RequestContext is not yet fully set up, so attempting to use it (or equivalent globals such as $wgUser or $wgTitle) is liable to fail in odd ways. If you need to use the RequestContext, consider the BeforeInitialize and ApiBeforeMain hooks instead.

Event Timeline

Legoktm created this task.Feb 9 2015, 4:43 AM
Legoktm raised the priority of this task from to High.
Legoktm updated the task description. (Show Details)
Legoktm added a subscriber: Legoktm.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 9 2015, 4:43 AM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptNov 19 2015, 5:49 PM